有个疑问:
比如说:
Select * FRom a
得到结果如下(反正就是好多条记录)
Col1 Col2 Col3
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
6 6 6
7 7 7
...
1000 1000 1000
现在
Create Table #b( Id Int Identity(1,1) Primay Key,
One Int,
Two Int,
Three Int)
Insert Into #b(One,Two,Three)
Select Col1,Col2,Col3
From a
Where Col1 Not In(1,3,5)最后,Select * From #b
此时的结果会不会是这样的
Id One Two Three
1 2 2 2
2 4 4 4
3 6 6 6
4 7 7 7
.....
其实我想问的就是,把一大堆记录通过条件塞选项好后,插到一个临时表后,此时临时表的记录中行的顺序会不会打乱?
比如说:
Select * FRom a
得到结果如下(反正就是好多条记录)
Col1 Col2 Col3
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
6 6 6
7 7 7
...
1000 1000 1000
现在
Create Table #b( Id Int Identity(1,1) Primay Key,
One Int,
Two Int,
Three Int)
Insert Into #b(One,Two,Three)
Select Col1,Col2,Col3
From a
Where Col1 Not In(1,3,5)最后,Select * From #b
此时的结果会不会是这样的
Id One Two Three
1 2 2 2
2 4 4 4
3 6 6 6
4 7 7 7
.....
其实我想问的就是,把一大堆记录通过条件塞选项好后,插到一个临时表后,此时临时表的记录中行的顺序会不会打乱?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货