排序的是数字型栏位,用一条sql得到某条记录排在第几,
如这条记录:
select id from table where id=300 order by id asc按照order by id asc排序,如何得到id=300这条记录目前是第几条记录?不会是第300条的,因为中间可能有删除。