Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Bind Variables Passed from command line to script

Posted on 2009-06-30
3
Medium Priority
?
683 Views
Last Modified: 2013-12-07
I have the following SQL Script

  SET echo off       ;
  SET feedback off   ;
  SET heading off    ;
  SET newpage 0      ;
  SET pagesize 0     ;
  SET underline off  ;
--
SPOOL &1
--
SELECT
       name
FROM   persons p
WHERE  p.id = &2 ;
SPOOL OFF ;

When it's run the contents of the spool file are:
old   4: WHERE  p.id = &2
new   4: WHERE  p.id = 203762
Simon

Can anyone tell me how to suppress the display of the lines
old   4: WHERE  p.id = &2
new   4: WHERE  p.id = 203762
so they don't appear in the output?
0
Comment
Question by:Gaetor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 2000 total points
ID: 24748475
set verify off
0
 

Author Closing Comment

by:Gaetor
ID: 31598479
Excellent, thank you
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 24749022
glad I could help
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question