当前位置: 代码迷 >> Oracle面试 >> update 语句解决办法
  详细解决方案

update 语句解决办法

热度:6162   发布时间:2013-02-26 00:00:00.0
update 语句
update   sn_CT_acquisition_cost   set   account_no   = '1048276 ';

大家帮我看下,这个sql文对吗

------解决方案--------------------------------------------------------
貌似语法没什么问题 会把sn_CT_acquisition_cost表的account_no全部 改成1048276
------解决方案--------------------------------------------------------
account_no 如果是数字的话 去掉单引号 set account_no=1048276
------解决方案--------------------------------------------------------
没问题
update t set .... where ....
------解决方案--------------------------------------------------------
update tb_customer_attr01
set user_id = replace(user_id, '2489998 ' , '1048276 '), -> user_id= '1048276 '
user_name=replace(user_name, 'old ', 'new ') -> user_name= 'new '
where user_id= '2489998 ';

  相关解决方案