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

如果在使用paginate的时候同时使用了distinct,好像不能去重 #3

Open
Lazybin opened this issue Apr 24, 2023 · 0 comments

Comments

@Lazybin
Copy link

Lazybin commented Apr 24, 2023

total会返回所有的没有去重的数据总行数。请问有什么办法可以设置distinct里面的参数吗?
现在生成的sql都是select count(*) as aggregate
我可不可以设置生成select count(t.id) as aggregate 这种SQL语句

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant