计算机 · 2023年2月9日 0

sql中逗号连接的2个表代表cross join

select * from t1,t2这种写法等价于select * from t1 cross join t2,即生成t1和t2表的笛卡尔积,两个表的所有行都会配对一次。

What’s the difference between comma separated joins and join on syntax in MySQL? – Stack Overflow