Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

达梦数据库group by 分页 问题 #710

Closed
kamikyo opened this issue Mar 4, 2021 · 1 comment
Closed

达梦数据库group by 分页 问题 #710

kamikyo opened this issue Mar 4, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@kamikyo
Copy link

kamikyo commented Mar 4, 2021

大佬,如何做goup by之后再分页?目前将group和page两个混用时,生成的sql会是这样:
select a,b,c,rownum as 'rownum' from t where...group by a,b,c。这时group by会出错,因为有一个rownum列没包含进去。如果手动补上的话,原本想要的group by也有失去了意义(因为每行的rownum肯定是不一样的)

issues里还有另外两个同类问题,但都是使用的sqlserver,所以没有参考性
达梦数据库生成的列长这样:
image

@2881099
Copy link
Collaborator

2881099 commented Mar 4, 2021

收到,生成时判断了数据库类型,多嵌套了一层处理。

2881099 added a commit that referenced this issue Mar 4, 2021
@luoyunchong luoyunchong added the bug Something isn't working label May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants