Select Multiple Columns From Multiple Tables

后端 未结 3 875
萌比男神i
萌比男神i 2021-01-14 06:18

I\'m a beginner at MySQL and I\'m having a hard time trying to figure out how to solve this problem:

I have two tables with many entries each. Let\'s say these are t

3条回答
  •  不要未来只要你来
    2021-01-14 07:16

    SELECT a.dt2, b.dt4, b.dt5
    FROM table1 a, table2 b
    WHERE a.dt2 = 'asd'
    LIMIT 0,1;
    

    Ben's answer is good, you can use more tables just by separating them by comma (,) , but if there's relationship between those tables then you should use some Sub Query or JOIN

提交回复
热议问题