Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Passing Unix Params to a Stored Procedure
need to pass Unix parameters to a stored procedure (called in proc.sql)
I call proc.sql like so (I've ommited the sql logon info etc):
@proc.sql $1 $2 $3
Within proc.sql I call the stored procedure:
my_proc('&1', '&2', '&3');
However this doesn't pick up the parameters passed from the Unix script. Am I correct in thinking that &1 etc is the correct way to bind parameters? Whenever I run proc.sql from the sql prompt, I get prompted to enter the three values and the script executes correctly.
TIA Received on Mon Jan 06 2003 - 07:38:32 CST