create table #T(a int identity(1,1),b int)insert #t (b) select 1
union select 2用truncate:select * from #ttruncate table #tinsert #t (b)select 3select * from #tdrop table #t
解决方案 »
- 如何在SQL Server2008执行一个500M大的.sql文件?
- 这样的sql语句应该怎么写?
- 老问题:关于SQL-server远程复制与发布的问题?
- 逐行提取数据的问题
- 请教一个UPDATE语句的问题
- 在VB中执行动态sql语句
- 这个问题也许很简单
- MSSQL备份移植到另一服务器还原时遇到问题???
- 在Sql Server里,如何从字符串中提取出数字?
- 急求SQL语句,高手请进
- 急!请各位同道人来帮忙,我想用SQL语句来查询一个表的,想得到一个自增长的字段
- ★★★是这样的:由于varchar只能装8000个字节 太少 所以只能选择Text类型 但是Text在使用Select查询时会报错!请问我如何取值?
create table #T(a int identity(1,1),b int)insert #t (b) select 1
union select 2select * from #t--用truncate:truncate table #tinsert #t (b)select 3select * from #tdrop table #t