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

前端 未结 6 1636
南笙
南笙 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:19

    I think you're looking for the UNION clause, a la

    (SELECT * from us_music where `genre` = 'punk')
    UNION
    (SELECT * from de_music where `genre` = 'punk')
    

提交回复
热议问题