htown — 2013-01-10T23:31:15-05:00 — #1
I need to search for a specific domain name is part of a random generated email that has been put into a SQL database. So an email address in one record may be email@example.com and the next firstname.lastname@example.org and so on. They will all have the invalid.com in common. So if i can search the table in this column for emails that have "invalid.com" in the email address and then I want to set that field to NULL.
i think I have part of it figured out but I need help with the last part. if not, I am open for the correct way to do this.
UPDATE q2gbj_users SET email = null WHERE (need help with this part)
r937 — 2013-01-11T05:26:23-05:00 — #2
WHERE email LIKE '%invalid.com'
htown — 2013-01-12T04:00:45-05:00 — #3
Thank you sir. Worked like a charm.