Solved

Bind Variables Passed from command line to script

Posted on 2009-06-30
3
681 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 500 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
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.

724 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