高手请进(utf8中文问题)
环境:oracle9i,tru64 5.1b
NLS_LANG=american_america.utf8
数据库NLS_CHARACTERSET:utf8
执行如下语句:
update xxx set xx='十三陵' where nb=1;
报错:ORA-01756: quoted string not properly terminated
改为:
update xxx set xx=' 十三陵 ' where nb=1;
报错:ORA-01756: quoted string not properly terminated
改为:
update xxx set xx=' 十三陵 ' where nb=1;
结果成功。
也就是说必须在中文的两端分别加上两个空格才行,这是为什么?
问题点数:0、回复次数:0Top




