hyperf / hyperf/paginator

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

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
3
Forks
2
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.