sql把結果集插入臨時表的方法

1----------select * into #orderby from ( select top 10 * from T_Lines )  table

 

 

 

 

2----------create table #orderby  (fromarea varchar(100), toarea varchar(100))


insert into #orderby (fromarea,toarea)
select top 10 fromarea,toarea from T_Lines

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章