Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: output parameter/pl-sql table type
>----- ------- Original Message ------- -----
>From: "Basavaraja, Ravindra"
><Ravindra.Basavaraja_at_t-mobile.com>
>To: Multiple recipients of list ORACLE-L
><ORACLE-L_at_fatcity.com>
>Sent: Wed, 01 Oct 2003 18:09:42
>
>I have a package Spec that has a types defined as
>
>TYPE FIRSTNAMETABLE IS TABLE OF
>V_CUS.FIRSTNAME%TYPE INDEX BY
>BINARY_INTEGER;
>TYPE LASTNAMETABLE IS TABLE OF
>V_CUS.LASTNAME%TYPE INDEX BY
>BINARY_INTEGER;
[snip]
>Procedure GETUSER
> ( pMSISDN IN
>VSTR_Customer.MSISDN%TYPE,
> oFirstName OUT
>FIRSTNAMETABLE,
> oLastName OUT
>LASTNAMETABLE,
[snip}
>I get the following error
>SQL> /
>dbms_output.put_line(myFirstName);
>*
>ERROR at line 24:
>ORA-06550: line 24, column 1:
>PLS-00306: wrong number or types of arguments in
>call to 'PUT_LINE'
>ORA-06550: line 24, column 1:
>PL/SQL: Statement ignored
>
>
>HOW DO I GET THIS WORKING.I TRIED DECLARING
>VARIABLE OF TABLETYPE AND TO
>PRINT IN SQLPLUS BUT I STILL
>THE SAME ERROR PLS-00306.
>
Function dbms_output.put_line takes a scalar as parameter, not an array. You must loop from 1 to .last and call put_line for each element.
Regards,
Stephane Faroult
Oriole
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephane Faroult INET: sfaroult_at_oriolecorp.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Oct 02 2003 - 03:59:27 CDT