I would like to UPDATE sql by using "except" Conditions but it's not working.
This is sql query that I have used:
UPDATE `LMS_EMP` SET `email`="XXX@xXX.com" WHERE NOT `org_abbr_code` IN (HR100, HR101, HR103);
Here are my concept:
1.If some of fields org_abbr_code
have these values HR100 OR HR101 OR HR103
, the email field will not change.
2.If another org_abbr_code
values, the email field will change as expect.
Thank you very much for any suggestion.
**I've edited for readable.