Full Outer Join查询接收错误

时间:2017-05-17 14:08:13

标签: mysql sql full-outer-join

有一个简单的mysql查询收到错误消息。

这是查询:

$query_parts = "SELECT I.sku, I.orderID, P.sku, P.description FROM inventory I FULL OUTER JOIN parts P ON I.sku = P.sku WHERE I.orderID = $orderID";

这是错误:

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 'FULL OUTER JOIN parts P ON I.sku = P.sku WHERE I.orderID = 4881166' at line 1

请帮助,对我来说,它看起来非常直接。

0 个答案:

没有答案