怎样在某个字段的记录前面追加一个汉字如“我” update table1 set field1= '我' || field1; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 同意楼上,这样也可以:update table1 set field1= concat('我', field1); 可是报错 inserted value too large for columnfield1: char 12原数据:A12345 update t_ygjbxxsetxm=(select '2'||TRIM(xm) from t_ygjbxx where xm='廖红星' )where xm='廖红星' update table1 set field1= '我' || trim(field1); 因为你用的类型是char,所以,如果长度不够,系统就加上了空格,如果使用VARCHAR2可以避免该现象。可以用楼上的方法,加上TRIM()删掉空格就可以了 update tablename set yourfieldname= '我' || trim(yourfieldname);应该没有问题,对于char类型,系统会加空格的。 表空间调整问题 多对多关系怎么写sql语句 一个和简单的包错在哪里? 关于oracle分区表的知识 请教一个行列转换的sql语句 如何在Oracle 10g中查询指定数据表的访问用户或角色及其有效权限? windows与oracle 谢了 诚请oracal8i高手给小弟引路 ,进者有分 各位大侠谁能帮我解决这个问题?????????急 oracle 俩表结构相同,数据比较! 急!谢谢!! 为什么copy命令不起作用? p4+oracle817,安装后,managerserver无法启动,help!!!~~~
update table1 set field1= concat('我', field1);
inserted value too large for columnfield1: char 12
原数据:A12345
set
xm=(select '2'||TRIM(xm) from t_ygjbxx where xm='廖红星' )
where xm='廖红星'
应该没有问题,对于char类型,系统会加空格的。