查询oracle数据库中的一个字段时爆出了这个错ORA-29275: partial multibyte character
sql语句
select
a.zymc
from sd_zy.xxxx a
当查询其他字段时都不会报错,唯独查询这个字段报错
上网查询了很多资料
you should use SUBSTRB
when you copy your data from your 250 CHAR
column to your 250 byte
column. This function will only output whole characters (you won't get incomplete unicode characters):
这个答案还是蛮靠谱的
我将sql语句改成如下所示:
select substr(a.zymc,1,9) ch9 from sd_zy.xxxx a
ok!