我正在尝试更改我所做的选择中的列,因此,选择命令是
SELECT * FROM `HLS3011_assets_workorder`
WHERE `date_created` >= '2016-01-01' and `date_created` < '2016-02-29'
我想更改&#34; status&#34;的列值从1到2
答案 0 :(得分:3)
试试这个:
UPDATE HLS3011_assets_workorder
SET status = 2
WHERE date_created >= '2016-01-01' AND date_created < '2016-02-29' AND status = 1