I have the following script :
UPDATE employee
SET is_active='No'
WHERE employee_id = 1
I want to update the is_active column which is of type enum from Yes to No, but when I try, I get a feedback of 0 rows affected with no changes made to the database.
What is the best way to update the value of field type enum?
That query is working fine for me in a little test table I created...
Are you sure you have an employee with an employee_id of 1? Or that the is_active field isn't already set to 'No'? Both those scenarios would cause 0 rows to be affected.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.