select rownum,a,b,c from table order by time desc
如果写了 desc rownum 就倒叙了 1 2 3 变成 3 2 1 了 而且我还要有这序号的字段 要正序的 1 2 3....
请高手指点。。。
------解决方案--------------------
试试
- SQL code
select rownum,a,b,c from (select a,b,c from table order by time desc )
select rownum,a,b,c from (select a,b,c from table order by time desc )