4

Suppose I have a query:

SELECT * from table1 tr where tr.start_time < &&starttime;

First time i execute the query, SQL Developer prompts me to enter the value for the substitution variable 'starttime' and is stored. Next time I run the script, it reuses the same value again, how do I reset/clear the stored value?

3 Answers 3

7
UNDEFINE starttime;

Just use above command.

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

Comments

4

Just use one ampersand at the start. You will be prompted to enter the value fresh. See the difference between & and &&

Comments

2

You can try these commands:

select &&v_value from table_name;
undefine v_value;

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.