Reputation: 13
I am writing a mysql select with regxp like this
SELECT name FROM employees WHERE name REGEXP '^A'
what is the regular expression syntax for this:
any record that contains gmail.com
thanks
Upvotes: 1
Views: 108
Reputation: 19539
I wouldn't use a REGEXP here:
SELECT name FROM employees WHERE name LIKE '%gmail.com%';
Cheers
Upvotes: 1