简体   繁体   中英

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?

UNDEFINE starttime;

只需使用上面的命令。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM