您可以使用CASE语句.
UPDATE myTable SET status = (CASE WHEN `name` IN ('a','b','c','d') THEN '0' WHEN `name` NOT IN ('a','b','c','d') THEN '1' END);