Minus operator giving me erros in mysql

前端 未结 2 1515
死守一世寂寞
死守一世寂寞 2021-01-06 07:14

I have two queries.

First query returning 11 rows and second query returning 6 rows when i use the minus operator on them it should return 5 rows as far as my under

2条回答
  •  情深已故
    2021-01-06 07:23

    MySQL does not support EXCEPT or MINUS.

    You can use NOT EXISTS , OUTER JOIN ... NULL or NOT IN (be careful of NULLs) to do an anti semi join.

    See examples and performance comparisons here

提交回复
热议问题