update if 根据条件修改字段值

update  t_mem_user_store us set us.status=case when us.status=1 then 0 else 1 end where us.user_store_id=4

猜你喜欢

转载自kingalone.iteye.com/blog/1614732