Skip to Main Content

Oracle Database Discussions

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!

Conditions in sqlplus "define" command

610916Jun 13 2008 — edited Jun 15 2008
Hi:

Had anybody tried to have a condition (something like case statement) for define command in sqlplus?

On one condition:
SQL> define var1='/db/data1/PSDMO'
on yet another condition:
SQL> define var1='/db/data2/PSDMO'
etc.

I know I could get all my values into some PL/SQL variable...but what about doing it this way?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 13 2008
Added on Jun 13 2008
4 comments
2,030 views