Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: [SPAM] ** default in sql loader

Re: [SPAM] ** default in sql loader

From: Tim Johnston <oraclel_at_ourownplace.com>
Date: Wed, 28 Jul 2004 14:13:42 -0400
Message-ID: <4107ECD6.4090601@ourownplace.com>


You can handle this in the sql*loader control file...

http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76955/ch05.htm#2407

http://download-west.oracle.com/docs/cd/A87860_01/doc/server.817/a76955/ch05.htm#6132

Although, I think you're limited to convential sql*loader when using sql operators...

Tim

A Joshi wrote:

>Hi,
> I have table and it has a field that has a default. I am loading the table from sql*loader. When the field is null in data file I want it to put the default. However it does not work. Even at sqlplus level if I insert a row using insert into .... values... it only puts the default if the field is not included. If the field is included in the list and a null is specified then it does not put the default.
> One way to overcome this is have a pre-insert trigger which checks for null and then puts the default but I am avoiding that and also if the default changes then I have to change the trigger.
> MAybe I am missing something basic here. Can someone help.
>Thanks
>
>---------------------------------
>Do you Yahoo!?
>Yahoo! Mail - 50x more storage than other providers!
>
>----------------------------------------------------------------
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>----------------------------------------------------------------
>To unsubscribe send email to: oracle-l-request_at_freelists.org
>put 'unsubscribe' in the subject line.
>--
>Archives are at http://www.freelists.org/archives/oracle-l/
>FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
>-----------------------------------------------------------------
>
>
>
>



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Wed Jul 28 2004 - 13:08:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US