刚才出了点问题
应该是这样的比如:
本来是:
select 栏位1 from tabname
查出结果



她希望
select 自动流水号,栏位1 from tabname
1 我
2 你
3 他
4 她请问如何实现
谢谢

解决方案 »

  1.   

    还有就是
    如果

    select 栏位1 from tabname1
    union 
    select 栏位1 from tabname2
    查出结果




    希望
    select 自动流水号,栏位1 from tabname1
    union
    select 自动流水号,栏位1 from tabname2
    1 我
    2 你
    3 他
    4 她可以吗
    还是说要先插入临时表
    再重新
    select 自动流水号,栏位1 from 临时表??
      

  2.   

    select id=identity(int,1,1),栏位1 into temp from tabnameselect * from temp