📌  相关文章
📜  如何在mysql代码示例中从不同表中选择多个列

📅  最后修改于: 2022-03-11 15:05:21.691000             🧑  作者: Mango

代码示例1
-- MySQL 
-- t1 = table1
-- dt2 = column of table
SELECT t1.dt2, t2.dt4, t2.dt5, t2.dt3 #get dt3 data from table2
FROM table1 t1, table2 t2 -- Doesn't need to have t1, or t2
WHERE t1.dt2 = 'asd' AND t2.dt4 = 'qax' AND t2.dt5 = 456