老师,为什么这样写就报错了?不是说连接时on可以变成where的吗?
来源:3-7 实战:表的外连接
MasirYXM
2020-04-12 10:18:33

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE e.deptno = d.deptno
AND e.deptno = 10' at line 2, Time: 0.000000s
1回答
时间,
2020-04-13
同学,你好。在外连接中,连接条件不能使用where,要使用on,因此同学改为where会报错
如果我的回答解决了您的疑惑,请采纳!祝学习愉快~~~~
相似问题