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?
UNDEFINE starttime;
Just use above command.
Just use one ampersand at the start. You will be prompted to enter the value fresh. See the difference between & and &&
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With