SELECT `email`
FROM `users`
WHERE `email`
NOT REGEXP '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}'
GROUP BY `email`
As seen here: http://stackoverflow.com/questions/2247266/mysql-valid-unique-e-mail
nonsense ideas
SELECT `email`
FROM `users`
WHERE `email`
NOT REGEXP '[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}'
GROUP BY `email`
As seen here: http://stackoverflow.com/questions/2247266/mysql-valid-unique-e-mail
However, the closer you move to the Poles, the smaller the lenghts of the parallels becomes.0 digit precision: ±110 km1 digit precision: ±11 km2 digit precision: ±1.1 km3 digit precision: ±110 m4 digit precision: ±11 m5 digit precision: ±1.1 m6 digit precision: ±11 cm7 digit precision: ±1.1 cm
0 digit precision: ±74 km1 digit precision: ±7.4 km2 digit precision: ±0.74 km3 digit precision: ±74 m4 digit precision: ±7.4 m5 digit precision: ±0.74 m6 digit precision: ±7.4 cm7 digit precision: ±0.74 cm
DELIMITER //
DROP FUNCTION IF EXISTS km_from_deg //
CREATE FUNCTION km_from_deg (latA DOUBLE, longA DOUBLE, latB DOUBLE, longB DOUBLE)
RETURNS DOUBLE
BEGIN
DECLARE tmp DOUBLE;
SET tmp =
COS(RADIANS(longA - longB)) * COS(RADIANS(latB))*COS(RADIANS(latA)) +
SIN(RADIANS(latB))*SIN(RADIANS(latA));
IF tmp > 1 THEN set tmp = 1;
ELSEIF tmp < -1 THEN set tmp = -1;
END IF;
return 6372 * ACOS(tmp);
END;
//
DELIMITER ;