Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: SQL help with pulling an environment variable into a default
The only way to do that would be an external function. Unfortunately,
there is no such thing in 7.3.4. If the guy named Yossarian is reading this,
he might add a thing or two....
-----Original Message-----
From: Jeff Cox [mailto:jeff.cox_at_ips-sendero.com]
Sent: Thursday, January 25, 2001 11:46 AM
To: Multiple recipients of list ORACLE-L
Subject: SQL help with pulling an environment variable into a default
value
Hello SQL fanatics,
I am having no luck with trying what I wish to do (Oracle 7.3.4 on NT) and cannot seem to find it in any documentation. Hope somebody from this list can either tell me how to do it or tell me that it cannot be done.
I am trying to add a column to the test table so the default value of the column will pull the %SVDIR% environment variable (Which is a drive letter, usually C: or D:) and then add '\FTP\' after the drive letter.
SVRMGR> SELECT rpt_file_path FROM test;
RPT_FILE_PATH
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jeff Cox
INET: jeff.cox_at_ips-sendero.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Jan 25 2001 - 11:02:22 CST
![]() |
![]() |