我在Perl脚本的变量中有一条SQL语句。连接到Oracle数据库工作正常。但是,当我要执行该语句时,会出现错误:
Error: ORA-00933: SQL command not properly ended (DBD ERROR: error
possibly near <*> indicator at char 319 in 'insert into....'
并显示SLQ语句:
...
where SYSTEM = 'LJ'
and FLOW = 'SEM_T2T_999_TBLNAME'<*>;
commit;
带有消息:
Uncaught exception from user code:
HASH(0x2260360) main::__ANON__('DBD::Oracle::st execute failed: ORA-
00933: SQL command not pr...', 'DBI::st=HASH(0x22600a8)', undef) called at
script_tst.pl line 112
main::easySQLora('insert into GCBBMS0.FLOWED\x{a}select\x{a} \'LJ\' as
SYSTEMCD\x{a} ,\'KER_T2T...') called at script_tst.pl line 42
在语句末尾,由于某种原因,它给出了编码方面的问题,看起来像是“ <*>”。
我尝试解码(“ UTF-8”,声明),但是没有用。
有人可以帮我解决这个问题吗?