0

我有一张表:国家和列 Country 和 Status 我希望仅根据 Country 列中的值更新 Status 列中的值。像这样

update ban_country_ip set
checkbox = 0
where country_name = United States

此语法不起作用。

4

2 回答 2

1
update countries
set `status`= 0
where country_name = 'United States'
于 2013-09-24T11:41:24.773 回答
1
update countries set
Status = 0
where Country = 'United States'
于 2013-09-24T11:41:57.310 回答