MySQL - Selecting data from multiple tables all with same structure but different data

前端 未结 6 1647
南笙
南笙 2020-11-28 03:46

Ok, here is my dilemma I have a database set up with about 5 tables all with the exact same data structure. The data is separated in this manner for localization purposes an

6条回答
  •  暖寄归人
    2020-11-28 04:04

    Any of the above answers are valid, or an alternative way is to expand the table name to include the database name as well - eg:

    SELECT * from us_music, de_music where `us_music.genre` = 'punk' AND `de_music.genre` = 'punk'
    

提交回复
热议问题