发送无效的电子邮件地址

时间:2011-04-28 08:18:09

标签: mysql

如何使用SELECT找到无效的电子邮件地址?

2 个答案:

答案 0 :(得分:14)

SELECT
    email
FROM
    TABLE
WHERE
    email NOT LIKE '%_@_%._%'
AND email NOT LIKE '%list of invalid char%';

答案 1 :(得分:-1)

SELECT email FROM tablename WHERE email NOT REGEXP '(^[a-z0-9]+)\@(.*)'