Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图运行一个使用左外连接的查询,但我不断收到语法错误。我不确定是什么原因造成的。
SELECT employee.emp_num, employee.emp_lname, pilot.pil_license FROM employee LEFT OUTER JOIN pilot WHERE employee.emp_num = pilot.emp_num;
我猜你的错误是“关键字'where'附近的语法不正确。”。应该这样改写:
SELECT employee.emp_num, employee.emp_lname, pilot.pil_license FROM employee LEFT OUTER JOIN pilot ON employee.emp_num = pilot.emp_num;
将“WHERE”替换为“ON”。只有这样。