select no=identity(int,1,1),c_name into #temptable from cakeinfo
select * from #temptable where no>5
drop table #temptable
Select no=Identity(int,1,1),* Into #temptable From TableName --Order By SortField
Select * From #temptable --Where no>=6 And no < 10
Drop Table #temptable
本文介绍了如何在SQL中创建并使用临时表进行数据筛选和处理。通过具体示例展示了利用临时表进行数据操作的方法,包括插入数据、查询以及删除临时表等步骤。

1897

被折叠的 条评论
为什么被折叠?



