首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

update同时更新两个字段如何组合起来写

2012-03-05 
update同时更新两个字段怎么组合起来写?比如:test表里a字段和b字段我想实现当id1时同时改变a和b的值updat

update同时更新两个字段怎么组合起来写?
比如:   test表里a字段和b字段
我想实现当id=1时   同时改变a和b的值

update   test   set   a= '11 '   where   id=1
update   test   set   b= '22 '   where   id=1

分着写我会,怎么合成一个update语句来写呢?

[解决办法]
update test set a= '11 ',b = '22 ' where id=1

热点排行