select IDENTITY (int, 1, 1) as id,* from table是这个意思?

解决方案 »

  1.   

    名字   數字
    aa    5
    bb    7
    cc    3
    dd    2
    ee    4按數字排序之後
    bb   1
    aa   2
    ee   3
    cc   4
    dd   5我想直接取到ee是排在第3位
    想用來sql實現
    能用一條更好
      

  2.   

    select * from table a order by a.数字 limit 2,1 楼主可能需要这样内容,但表数据多了就会出现速度问题。