连续序号的 sql语句

来自:网络
时间:2021-05-28
阅读:
免费资源网 - https://freexyz.cn/
复制代码 代码如下:
# id唯一,num连续序号
# select a.id,num=(select count(1) from tb b where b.id<=a.id ) from tb a
免费资源网 - https://freexyz.cn/
返回顶部
顶部