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

Using SQL UNION / UNION ALL operator #15

Open
samiharju opened this issue Feb 7, 2019 · 1 comment
Open

Using SQL UNION / UNION ALL operator #15

samiharju opened this issue Feb 7, 2019 · 1 comment
Projects

Comments

@samiharju
Copy link

Is there a possibility to create queries with the UNION or UNION ALL operator?

Something like this would be useful:

$h->table('students')
  ->select('column_name')
  ->union()
  ->table('teachers')
  ->select('column_name')
  ->get();

Resulting in:

SELECT column_name FROM students
UNION
SELECT column_name FROM teachers;
@eurairapelli
Copy link

Good night,,

Why not merge fork https://github.com/lucasnodari/Hydrahon with unionall in oficial Hydrahon?

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

No branches or pull requests

2 participants