您现在的位置是:网站首页> 编程资料编程资料

连续序号的 sql语句_数据库其它_

2023-05-27 447人已围观

简介 连续序号的 sql语句_数据库其它_

复制代码 代码如下:

# id唯一,num连续序号
# select a.id,num=(select count(1) from tb b where b.id<=a.id ) from tb a

-六神源码网