【oracle】oracle查询数据时增加序号

使用row_number()增加序号

select row_number() over(ORDER BY srl), id, matcode,matId,matname,num,uom, srl
from C##PDMES.Bas_BomDet  
where bomid='7F8E412288EE8586E055000000000001' and udf1='A'

结果:
在这里插入图片描述

发布了23 篇原创文章 · 获赞 2 · 访问量 4241

猜你喜欢

转载自blog.csdn.net/weixin_45616483/article/details/103126435