gpt4 book ai didi

mysql错误内连接

转载 作者:行者123 更新时间:2023-12-01 00:31:03 25 4
gpt4 key购买 nike

我使用了类似这样的查询

select a.email,b.vuid 
from user a
,inner join group b on a.uid = b.uid
where a.email='xx@xx.de' and a.kid=1 and b.vid=29
limit 1

但我总是遇到这个错误。

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 'inner join group b on a.uid = b.uid where a.email='xx@xx.de' at line 1

我认为这是因为内部连接,但我真的不知道......有人可以帮助我吗?

最佳答案

删除 from user a 之后的 ,

您的查询应该是:

select a.email,b.vuid
from user a
inner join group b
on a.uid = b.uid
where a.email='xx@xx.de'
and a.kid=1
and b.vid=29
limit 1

关于mysql错误内连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6310147/

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