Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Store Procedure
news.is.co.za <wpo_at_saol.co.za> wrote in article
<01bd0ab6$6c845760$0b0e25c4_at_karoo>...
> Hi
>
> is it posisble to use fixed length input varaibles in a Oracle Store
> Procedure like
> this :
>
> Procedure SP_TEMPDATA
> ( P_Name IN CHAR(30),
> P_Tel IN CHAR(30)
> IS
> BEGIN
> INSERT INTO TEMPDATA
> (NAME, TEL)
> VALUES
> (P_Name, P_Tel);
> COMMIT;
> END;
>
> Thanks
> Willie Prinsloo
>
Willie,
You can define a table as
create table mytable( alpha varchar2(10));
... and then in your package use:
procedure myproc( argument1 mytable.alpha%type );
this will then limit the arguement length to 10 chars.
hope this helps.
Graham - typing one handed whilst on the 'phone. :)