1234567891011121314151617181920212223242526 |
-
- use [db]
- declare @len int
- select @len = max(len([count])) from dindansp3
- select * from dindansp3 where len([count]) = @len
- use [db]
- select identity(int,1,1) as autoid, * into
- select min(autoid) as autoid into
- truncate table [lonindata]
- insert into [db].[dbo].[lonindata]([no],[datetime]) select [no],[datetime] from
- drop table
- drop table
|