0

I am new in SQL Plus. I have multiple queries in a SQL file.

Some queries have variables so whenever I use ACCEPT for that, the output file gets spooled including the command and input I entered. Something like that:

SP2-0003: Ill-formed ACCEPT command starting as ,name char prompt 'Enter name:'

with the old and new statements like:

Enter value for name: 'john diaz'

old 3: (select * from sample where upper(name) = upper(&name)),

new 3: (select * from sample where upper(name) = upper('john diaz'))

How to remove those statements from output file?? Anyone??

1 Answer 1

1
SQL> SET VERIFY OFF

SQL> ACCEPT name CHAR PROMPT 'Enter name::  ' HIDE

Enter name:

SQL> select * from sample where upper(name) = upper(&name);

This way, it will not show OLD/NEW Value, and also you could enter Value in Hidden Way. No display on what you enter.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.