mysql查詢一組數據是否存在數據庫,而且返回不存在的數據sql語句

SELECT md5 FROM ( SELECT 'dec22e4d774bf6de7ede1480aa7b6759' as md5 UNION SELECT '11' as md5 UNION SELECT '22' as md5 UNION SELECT '33' as md5 ) a WHERE md5 NOT IN ( SELECT md5 from fa_webscan_verifies WHERE md5 IN ('dec22e4d774bf6de7ede1480aa7b6759', '11', '22', '33') );
相關文章
相關標籤/搜索