Home:ALL Converter>I have 28 country specific databases with same tables, want to select values from a particular table in all databases

I have 28 country specific databases with same tables, want to select values from a particular table in all databases

Ask Time:2016-06-09T16:05:16         Author:sid

Json Formatter

I have many country specific databases with same tables, want to select values from a particular table of all databases.

How to implement join in this scenario?

SELECT column1, column2 FROM db1.table1 
SELECT column1, column2 FROM db2.table1 

Author:sid,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37720181/i-have-28-country-specific-databases-with-same-tables-want-to-select-values-fro
labzus :

You can use UNION :\n\nSELECT column1, column 2 FROM db1.table1 \nUNION\nSELECT column1, column 2 FROM db2.table1\nUNION\nSELECT column1, column 2 FROM db3.table1\n\n\n...",
2016-06-09T08:08:07
yy