如何使用特定值更新两个特定列的记录

时间:2011-04-01 10:16:35

标签: sql sql-server-2005

将总费用更改为5000,其STNO = 1003,1006,1007

请发给我这个问题的确切查询语句......

谢谢, 丘吉尔...

2 个答案:

答案 0 :(得分:1)

update [table] set [total fee]=5000 where STNO in (1003,1006,1007)

答案 1 :(得分:1)

 update mytable set totalfee = 5000
 where stno in ('1003','1006','1007')