2
(SELECT IDOperatore FROM operatore) MINUS
(SELECT IDOperatore FROM commessaoperatore GROUP BY IDOperatore)
即使我試圖用替換MINUS
,此查詢不起作用。 單數查詢SELECT IDOperatore FROM operatore
和SELECT IDOperatore FROM commessaoperatore GROUP BY IDOperatore
正在工作,但如果我嘗試將Minus
運算符放在一起,則它們不起作用。SQL查詢運算符減號不起作用
ERROR: #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 'MINUS (SELECT IDOperatore FROM commessaoperatore GROUP BY IDOperatore)' at line 1
這是一個正確的答案,謝謝。 – vankraster 2011-01-21 07:49:23