-2
SELECT email, record_id
FROM (SELECT email, record_id
FROM record_data
WHERE email NOT REGEXP (SELECT GROUP_CONCAT(pattern SEPARATOR '|')
FROM blockedcompanies) tmp
)
WHERE email NOT REGEXP(SELECT GROUP_CONCAT(email SEPARATOR '|')
FROM unsubscribed);
此查詢有什麼問題?我收到以下語法錯誤:無法使用phpmyadmin執行查詢
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'tmp) WHERE email NOT REGEXP(SELECT GROUP_CONCAT(email SEPARATOR '|') FROM un' at line 4
感謝名單gbtimmon ... – 2013-05-14 13:37:12