一种不好的解决方法是 select (select count(*) from t where c1=a.c1 and c2<a.c2) as rownum, * from t a
56,677
社区成员
56,708
社区内容
加载中
试试用AI创作助手写篇文章吧