Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Query Variables in SQL Developer

thesqlguyatlSep 1 2016 — edited Sep 1 2016

What is the proper way to use variables with query-based values in a query in SQL Developer?  Here is what I want to do:

  1. declare variable, e.g., v_date
  2. assign variable value based on query, e.g., (select last_day(sysdate) from dual)
  3. use variable in query

I have been a long-time Toad user and the method appears to be different from what I am use to.  I have tried to find this info online and tried several variations, but for some reason I am having trouble.  Any help is appreciated.

This post has been answered by thatJeffSmith-Oracle on Sep 1 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2016
Added on Sep 1 2016
3 comments
8,305 views