我试图从Oracle数据库插入数据到PostgreSQL。 在Oracle数据库,这是成功的标准声明:如何从oracle数据库到postgreSQL插入符号/字符(例如:'²'或其他语言符号)
insert into "schema"."table"@dblink values (2, 'test');
但是,当我说像“²”旁边的“测试”特殊字符,它返回的错误:
insert into "schema"."table"@dblink values (2, 'test²'); ORA-28500: connection from ORACLE to a non-Oracle system returned this message: ERROR: invalid byte sequence for encoding "UTF8": 0xbf; Error while executing the query {22021,NativeErr = 7} ORA-02063: preceding 3 lines from dblink
我想这与语言“UTF8”兼容性有关,但我不知道要在哪里修复它。我希望我的问题很明确 - 对不适当的语言感到抱歉。