0

我需要根据查询更改一些字段:

SELECT *
FROM  IP_cases_prelim
WHERE DRG = '470' AND PRINCIPLE_PROC_CD = '8154' 
      AND `Treatment Category Code` = '00601';

它在 6000 条表中找到 254 条记录。

我现在需要将这些的“治疗类别代码”从“00601”更改为“00801”

建议?

谢谢

4

2 回答 2

0

尝试更新语句:

UPDATE IP_cases_prelim 
SET 'Treatment Category Code' = '00801'
WHERE DRG = '470' AND PRINCIPLE_PROC_CD = '8154' AND Treatment Category Code = '00601';
于 2012-06-12T06:12:52.347 回答
0

这个怎么样。

UPDATE IP_cases_prelim
SET    'Treatment Category Code' = '00801'
WHERE  DRG = '470' AND PRINCIPLE_PROC_CD = '8154' 
       AND 'Treatment Category Code' = '00601';
于 2012-06-12T06:13:36.687 回答