【发布时间】:2018-10-30 03:43:55
【问题描述】:
create or replace function CasLengthOfLongRaw( p_tname in varchar2,
p_cname in varchar2,
p_rowid in rowid ) return number
AUTHID CURRENT_USER as pragma autonomous_transaction;
l_length number;
begin
execute immediate
'insert into TEMPCSSRPLLOB(LOBFIELD)
select to_lob(' || p_cname || ')
from ' || p_tname || '
where rowid = :x' using p_rowid;
select dbms_lob.getlength(LOBFIELD) into l_length
from TEMPCSSRPLLOB;
commit;
return l_length;
end;
对于这个功能,我得到了
第 7 行错误和 ORA 错误 ORA-00932: 不一致的数据类型: 预期 LONG BINARY 得到 BLOB ORA-06512:在“CASLENGTHOFLONGRAW”,第 7 行 00932. 00000 - “不一致的数据类型:预期的 %s 得到了 %s”
【问题讨论】:
-
一个善意的建议:请不要添加“尽快”、“紧急”等词。我删除了它。在 S.O 中,用户会花时间自愿帮助您。
-
发布TEMPCSSRPLLOB的描述
标签: oracle