>ãã®2ã¤ã®ãã¼ãã«ã®å·®åãç¥ãããã®ã§ããã >ï¼ï¼¡ãåºæºã¨èãï¼¢ã¨ã®å·®åï¼ã¤ã¾ãAã«ã¯åå¨ããªããã¼ã¿æ½åºï¼ Aãåºæºãªããæ®éã¯ãAã«ãããBã«ãªããã ã¨æãã¾ããï¼ ç´ããããã®ã§ããt1ã«ãããt2ã«ã¯ãªããã¨ãã¦ãSQLä¾ã示ãã¾ãã -- ä¾1 not existsã使ã select c1 from t1 where not exists(select * from t2 where t1.c1=c1) -- ä¾2 not inã使ã select c1 from t1 where c1 not in(select c1 from t2) -- ä¾3 left joinã使ã select t1.c1 from t1 left join t2 on t1.c1=t2.c1 where t2.c1 is null
{{#tags}}- {{label}}
{{/tags}}