[英]Update value from table column based on the value from another column
我有表:国家和列国家和状态我希望根据Country列中的值仅更新Status列中的值。 像这样的SMTH
update ban_country_ip set
checkbox = 0
where country_name = United States
此语法不起作用。
update countries
set `status`= 0
where country_name = 'United States'
update countries set
Status = 0
where Country = 'United States'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.