连续序号的 sql语句 2024-11-24 56阅读 0评论 复制代码 代码如下: # id唯一,num连续序号 # select a.id,num=(select count(1) from tb b where b.id<=a.id ) from tb a 文章版权声明:除非注明,否则均为奥多云原创文章,转载或复制请以超链接形式并注明出处。
还没有评论,来说两句吧...