表结构:
一条sql修改多条数据(Sql server),oracle,mysql请自行尝试:
update orders_jimmy set country_nid = (case country_nid when 0 then 0 else country_nid end) where 1 = 1; go
完成.
Sql练习201908200916
原文:https://www.cnblogs.com/JimmySeraph/p/11381014.html