Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Passing a null value to a stored procedure from Java (DBMS_SQL.Varchar2_Table)

Re: Passing a null value to a stored procedure from Java (DBMS_SQL.Varchar2_Table)

From: sybrandb <sybrandb_at_gmail.com>
Date: 9 Mar 2007 02:42:34 -0800
Message-ID: <1173436954.681722.234040@h3g2000cwc.googlegroups.com>


On Mar 9, 10:08 am, rafa..._at_gmail.com wrote:
> Hi,
>
> Can anyone tell me how to pass a null value as IN parameter to a PL/
> SQL stored procedure?
>
> E.g:
>
> PROCEDURE sendMessage(p_tuIds IN DBMS_SQL.Varchar2_Table) (...)
>
> It works well with filled array using OracleCallableStatement:
>
> cs.setPlsqlIndexTable (index, values, maxLen, currentLen, elemSqlType,
> elemMaxLen);
>
> Question is - what method should I use to pass an empty (or null)
> table?
>
> Thanks in advance for your help!

Probably you should pass an empty table
That is a table variable initialized with <table type> ();

Hth

--
Sybrand Bakker
Senior Oracle DBA
Received on Fri Mar 09 2007 - 04:42:34 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US