select (select count(*) from employee a where a.empno<=b.empno) id,empnm,sex
from employee b
order by empno
from employee b
order by empno
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/87010/viewspace-671855/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/87010/viewspace-671855/