gpt4 book ai didi

mysql - 从加入中选择时出错

转载 作者:行者123 更新时间:2023-11-29 08:04:30 25 4
gpt4 key购买 nike

有谁知道为什么我从此查询中收到错误:

SELECT COUNT(*) 
FROM individual AS i LEFT JOIN establishment AS e USING establishment_id
WHERE i.bla = e.bla;

mysql-workbench 在第 1 行的 setup_id 下给了我一条波浪线,并报告语法错误,但我不确定为什么会收到此错误。

最佳答案

我认为你需要括号:

SELECT COUNT(*) 
FROM individual AS i LEFT JOIN establishment AS e USING (establishment_id)
WHERE i.bla = e.bla;

关于mysql - 从加入中选择时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23008891/

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