Double At Sign (@@)

The double at sign is used within a script file to execute another script file contained in the same directory as the first. This is very convenient if you have two scripts, one that calls the other. Use the @@ command in the first script file to call the second. Then put both files in the same directory. Now, regardless of whether or not that directory is in the search path, SQL*Plus will find the second file whenever the first calls for it. If used interactively, @@ functions exactly the same as @.

A script file is simply a text file containing SQL*Plus commands. The commands appear in the file just as you would enter them from the keyboard. See Chapter 2 for an introduction to this command. Also see the @ and START commands.

@@script_file [argument...]

where:

@@

Is the command to execute a script file.

script_file

Is the name of the file you want to execute, and may include the path and the extension. The default extension is SQL. The default path is the one pointing to the directory where the calling script is stored.

argument

Is an argument you wish to pass to the script. You may pass as many arguments as you like. Arguments must be separated from each other by at least one space. Arguments may be enclosed in quotes, and should be if they contain spaces. Either single or double quotes may be used, at your discretion. Your script may reference the first argument as &1, the second as &2, and so forth.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.95.38