-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add distinct() method #235
Conversation
User can do `$db->distinct()->select(...)` to do a distinct selection (add `DISTINCT` to the query).
👍 |
👍 You should reset distinct mode after executing a query, however. |
I like this feature.
or
|
@SyuTingSong it should be |
@Sebb767 I merged @sargunster's work to my fork. And I implement auto-reset and I guess You can review my code in commit b7eea7e . Since my fork has merged some others' pull-requests which catfan ignored. I won't create new pull-request here. Feel free to use and discuss my code. |
👍 |
👍 |
this would be great |
Upvoted. |
+1 |
@SyuTingSong any plan for implementing this? I am really looking forward to this method. |
Missing this piece |
Seems like this project is no longer maintained, closing this old PR to clear my queue. |
User can do
$db->distinct()->select(...)
to do a distinct selection (addDISTINCT
to the query).Used code from the post by @darre4nbrown in issue #113.
This simple to use and a crucial feature for interacting with a database.