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

Request : update GROUP accept array #333

Closed
touchweb-vincent opened this issue Dec 19, 2015 · 2 comments
Closed

Request : update GROUP accept array #333

touchweb-vincent opened this issue Dec 19, 2015 · 2 comments

Comments

@touchweb-vincent
Copy link

Hello,

Dealing with this, may avoid direct query usage :

$db->select('customer', '*', array('GROUP' => array('foreign1_id', 'foreign2_id' ,'foreign3_id')));

If you could add this support, it would sounds good to me.

Thank you :)

Regards,
Vincent

@SyuTingSong
Copy link
Contributor

Seems useful.

$db->select('customer', '*', array('GROUP' => array('foreign1_id', 'foreign2_id' ,'foreign3_id')));

Creates query

SELECT * FROM "customer" GROUP BY "foreign1_id", "foreign2_id", "foreign3_id"

SyuTingSong added a commit to SyuTingSong/Medoo that referenced this issue Jan 16, 2016
SyuTingSong added a commit to SyuTingSong/Medoo that referenced this issue Feb 17, 2016
@catfan
Copy link
Owner

catfan commented May 10, 2017

Supported on Medoo 1.4.

@catfan catfan closed this as completed May 10, 2017
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

3 participants