gpt4 book ai didi

WHERE 选择上的 MySQL 语法错误

转载 作者:太空宇宙 更新时间:2023-11-03 11:58:51 25 4
gpt4 key购买 nike

<分区>

我正在尝试让多个表选择 ID = 变量。

下面是示例代码,我相信它应该可以工作,但不知何故我在语法上有一些错误。

SELECT c.id, c.firstname, c.surname, c.email, c.process, c.search_work, c.note,
group_concat(DISTINCT ce.enforcement) as enfor,
group_concat(DISTINCT cc.city) as city
FROM candidates AS c
LEFT JOIN candidates_language AS cl ON c.id = cl.candidates_id
LEFT JOIN candidates_enforcement as ce on c.id = ce.candidates_id
LEFT JOIN candidates_city as cc on c.id = cc.candidates_id
GROUP BY c.id, c.firstname, c.surname, c.email
WHERE c.id='8'

fiddle : http://sqlfiddle.com/#!9/25b1b/24

错误: 您的 SQL 语法有误;查看与您的 MySQL 服务器版本对应的手册,了解在“WHERE id=”附近使用的正确语法

请问有没有人可以告诉我我做错了什么?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com