select 单据id, 序号=(select count(1)+1 from tb where 单据id=t.单据id and 部id<t.部id), 内部id from tb t
34,590
社区成员
254,589
社区内容
加载中
试试用AI创作助手写篇文章吧