MySQL UNION with query builder possible?
See original GitHub issueIssue type:
[x] question [ ] bug report [x] feature request [x] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[x] mysql
/ mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo
TypeORM version:
[x] latest
[ ] @next
[ ] 0.x.x
(or put your version here)
Steps to reproduce or a small repository showing the problem:
Is it possible to create a UNION
select statement using the query builder? I can’t find anything in the documentation about that.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Union queries from different databases in Laravel Query Builder
I have two similar tables in two different databases. Both tables have a column with a date and one with email addresses. Though...
Read more >Working with unions in Active Query Builder - User's Guide
Union sub-queries can be grouped with other sub-queries and joined with different operators (UNION, UNION ALL, EXCEPT, INTERSECT). To add a new union...
Read more >Example of unionAll in Query Builder Laravel
If you use union all then laravel query builder provide unionAll method for mysql union. when you are doing big project or ERP...
Read more >Add union() to DB Query Builder - CodeIgniter Forums
This is what I do on very complex queries (or dynamic queries). And it works fine with the UNION command as I've used...
Read more >can't use where clause after union of 2 queries - Laracasts
That is down to MYSQL rather than Laravel. As you can see from the example here, if you want to do a where...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@pleerock, are there any plans to add union to the query builder API?
My version