相关疑难解决方法(0)

替代MySQL中的Intersect

我需要在MySQL中实现以下查询.

(select * from emovis_reporting where (id=3 and cut_name= '?????' and cut_name='??') ) 
intersect
( select * from emovis_reporting where (id=3) and ( cut_name='?????' or cut_name='??') )
Run Code Online (Sandbox Code Playgroud)

我知道相交不在MySQL中.所以我需要另一种方式.请指导我.

mysql intersect

60
推荐指数
4
解决办法
10万
查看次数

mysql相交

我是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;
Run Code Online (Sandbox Code Playgroud)

#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
Run Code Online (Sandbox Code Playgroud)

mysql

1
推荐指数
1
解决办法
1万
查看次数

标签 统计

mysql ×2

intersect ×1