--1.
select numid=(select count(1) from tb where 主键<=a.主键),*
from tb a
--2.
select xm,sex=(case sex when 1 then '男' else '女' end)
from tb
select numid=(select count(1) from tb where 主键<=a.主键),*
from tb a
--2.
select xm,sex=(case sex when 1 then '男' else '女' end)
from tb
我时想直接每一行 的行号码取出来
依次递加
1 sss 222
2
3
4......