gpt4 book ai didi

mysql相交

转载 作者:行者123 更新时间:2023-11-29 04:02:24 28 4
gpt4 key购买 nike

我是 mysql 的新手,所以请多关照。我的脚本出现以下错误,我不确定它出了什么问题。

SELECT uoid 
FROM mint
WHERE mint_id='6' and userid='3836'
INTERSECT
SELECT id as uoid
FROM cats
WHERE category='Health, Fitness'
ORDER BY 1;

给予

#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 'INTERSECT SELECT id as uoid FROM cats WHERE category='Health, Fitness'' at line 4

最佳答案

MySQL 没有 INTERSECT 关键字。参见 this questionthis one获取有关如何实现目标的建议。

关于mysql相交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10433587/

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