Skip to Main Content

SQL & PL/SQL

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!

Can i use a environment variable inside a *.sql file?

696057Feb 19 2010 — edited Feb 19 2010
Hello,

I want to create a external table.
So i am using the command
create or replace directory abc as 'C:\folder'.... inside a sql file.

Now i want the path "C:\folder" to be dynamic as i am using this path in many other places also inside the sql file.So i thought to create a environment variable and put this value there.I tried using as %PATH% but it gives error..... where %PATH%=C:\folder.
Can i use a environment variable inside a *.sql file?
But how to do that or is there any other way.


Thanks
Swapna

Edited by: user11018268 on Feb 19, 2010 1:03 AM
This post has been answered by 730428 on Feb 19 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2010
Added on Feb 19 2010
4 comments
1,187 views