日期:2014-05-17  浏览次数:21095 次

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 ';