Passing BLOB/CLOB as parameter to PL/SQL function
- by Ula Krukar
I have this procedure i my package:
PROCEDURE pr_export_blob(
p_name IN VARCHAR2,
p_blob IN BLOB,
p_part_size IN NUMBER);
I would like for parameter p_blob to be either BLOB or CLOB.
When I call this procedure with BLOB parameter, everything is fine. When I call it with CLOB parameter, I get compilation error:
PLS-00306: wrong number or types of arguments in call to 'pr_export_blob'
Is there a way to write a procedure, that can take either of those types as parameter? Some kind of a superclass maybe?