我有三个表格,我想从中显示一些信息。问题是其中一个ps_mycase_output_design
与其他人没有任何关联。 我想要的只是能够显示所有人的信息。我不需要通过ID的查询,..或WHERE子句等,这是从我开始,但我已经有了从三个表格中选择,没有条款或条款
#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 'ORDER BY mycase.key_product_output DESC LIMIT 10' at line 13
下面是简单的查询
SELECT customer.*, mycase.*, orders.*
FROM
ps_customer customer
LEFT JOIN
ps_orders orders
LEFT JOIN
ps_mycase_output_design mycase
ORDER BY mycase.key_product_output DESC LIMIT 10
你的左连接需要一个'on'子句来定义你加入哪一列 –
你忘记了ON子句 – Priyanshu
我不想使用ON ..我只想选择它们 – Garg