SELECT Data from multiple tables?

后端 未结 3 2005
慢半拍i
慢半拍i 2021-01-01 02:55

I have 3 tables, with 3 fields all the same. I basically want to select information from each table

For example:

userid = 1

I want

3条回答
  •  天命终不由人
    2021-01-01 03:28

    SELECT * FROM `random`
             JOIN `pandom` USING (`userid`)
             JOIN `landom` USING (`userid`)
    WHERE `userid`='1'
    

提交回复
热议问题