请问怎么给select出来的记录集加个序号列?
比如select a,b from table1
我想给得到的结果集加个自动增长的序号列,就是1,2,3....怎么弄呢,
------解决方案--------------------select rownum,a,b from table1;
------解决方案--------------------rownum
------解决方案--------------------select rownum as xh,table_name.* from table_name;