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: Is it possible to pass args. to a sql script

Re: Is it possible to pass args. to a sql script

From: John P. Higgins <jh33378nospam_at_deere.com>
Date: 1997/11/20
Message-ID: <3474AE46.79A@deere.com>#1/1

Casper Thrane wrote:
>
> Hi
>
> I have a sql-script in a file which i execute from sql-plus, but is it
> possible to pass arguments when I execute this script?
> --
> Casper Thrane
> Systemdeveloper
> Benau A/S
 

Sure.

In your script, identify the variables by position: $1, $2, $3, ...

Then call your script within SQL*Plus:
@script value1 value2 value3 ... Received on Thu Nov 20 1997 - 00:00:00 CST

Original text of this message

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