标签:-- match keyword col php HERE sel class case when
--使用IN的时候 SELECT keyCol, CASE WHEN keyCol IN ( SELECT keyCol FROM tbl_B ) THEN ‘Matched‘ ELSE ‘Unmatched‘ END Label FROM tbl_A;
--使用EXISTS的时候 SELECT keyCol, CASE WHEN EXISTS ( SELECT * FROM tbl_B WHERE tbl_A.keyCol = tbl_B.keyCol ) THEN ‘Matched‘ ELSE ‘Unmatched‘ END Label FROM tbl_A;
标签:-- match keyword col php HERE sel class case when
原文地址:https://www.cnblogs.com/363747320wxb-qihe/p/9569074.html