私はmysqlを使い慣れていますので、親切にしてください。私は私のスクリプトのために次のエラーが出てきていて、何が間違っているのかわからない。mysql intersect
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キーワードがないためです。おそらく興味深い:http://stackoverflow.com/questions/2621382/intersect-in-mysql。 – alexn
...この1つ:http://stackoverflow.com/q/2300322/306084 – pjmorse