Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to clear stored substitution variables in Oracle SQL developer

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?

like image 840
SuryaVal Avatar asked Oct 25 '25 21:10

SuryaVal


2 Answers

UNDEFINE starttime;

Just use above command.

like image 155
smshafiqulislam Avatar answered Oct 27 '25 11:10

smshafiqulislam


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

like image 34
Gary_W Avatar answered Oct 27 '25 10:10

Gary_W



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!