查询结果前添加行号列,id //如何用sql在查询结果前添加行号有好多帖子都有说明,自己搜一下
执行下列语句:
select res from table_name where id=(select id-1 as id from table_name a where res='D')
执行下列语句:
select res from table_name where id=(select id-1 as id from table_name a where res='D')
调试欢乐多
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货