以下update语句得不到预期结果
update event_detail set step_status=1 and impact_area='222isss.jsjd.lemem.com' and end_time='2024-06-14 17:23:39' where event_id=91 and step='other_group2';
多个字段改动,不能使用 and连接,使用逗号“,”分隔即可正确:
UPDATE event_detail SET step_status = 1 WHERE event_id = 91 AND step = 'other_group2' AND impact_area = '222isss.jsjd.lemem.com' AND end_time = '2024-06-14 17:23:39';