Alternative to Intersect in MySQL

前端 未结 8 1571
暖寄归人
暖寄归人 2020-11-22 11:53

I need to implement the following query in MySQL.

(select * from emovis_reporting where (id=3 and cut_name= \'全プロセス\' and cut_name=\'恐慌\') ) 
intersect
( sel         


        
8条回答
  •  心在旅途
    2020-11-22 11:56

    SELECT
      campo1,
      campo2,
      campo3,
      campo4
    FROM tabela1
    WHERE CONCAT(campo1,campo2,campo3,IF(campo4 IS NULL,'',campo4))
    NOT IN
    (SELECT CONCAT(campo1,campo2,campo3,IF(campo4 IS NULL,'',campo4))
    FROM tabela2);
    

提交回复
热议问题