Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Help on Paramater Passing
amerar_at_iwc.net wrote:
> Nice, I just have to find an example so I can learn how to do
> this....... :)
>
sqlplus uid/passwd @myproc name_proc
myproc.sql then would use &1
goes up to nine parameters:
test.sql contains:
select &1 from dual
/
[oracle10_at_csdb01 oracle10]$ sqlplus scott/tiger @test 12
SQL*Plus: Release 10.1.0.4.0 - Production on Mon Mar 6 21:16:51 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.1.0.4.0 - Production
With the Partitioning, OLAP and Data Mining options
old 1: select &1 from dual
new 1: select 12 from dual
12
12
-- Regards, Frank van Bortel Top-posting is one way to shut me up...Received on Mon Mar 06 2006 - 14:30:12 CST