Go Back   Rhinocerus > Newsgroup > Newsgroup comp.databases.oracle.server

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-29-2006, 02:53 PM
KK
Guest
 
Posts: n/a
Default external table

Can we replace null values with banks in the external table instead of
spaces?

'missing field values are null' replaces with nulls.

any ideas?

Thanks.

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 03-29-2006, 03:41 PM
Mark D Powell
Guest
 
Posts: n/a
Default Re: external table

>> Can we replace null values with banks in the external table instead of spaces? <<

Do you want FDIC insurance with that? 8-D

I think you mean blanks in which case, what is the difference between
blanks and spaces? The answer is none. The words are synonyms.

If you want to insert NULLs then you do not have to do anything special
in sqlldr. The columns which correspond to the missing data will be
inserted without data in these columns: data1,data2,,data4 <== data
col3 has no data and will be NULL

I am not sure what it is you are really trying to ask. Do you have
char columns in a table with spaces for data that you want to compare
to the external table data? Using varchar2 instead would get rid of
this problem or you can use some of the available functions like NVL,
COALESCE, NULLIF, ... to perform the comparison.

If the above does not point you in the right direction then post some
sample data, the external table definition, and anything else necessary
to allow someone to see and demonstrate what you are trying to do.

HTH -- Mark D Powell --

Reply With Quote
  #3 (permalink)  
Old 03-29-2006, 04:26 PM
KK
Guest
 
Posts: n/a
Default Re: external table

Mark, sorry there was a mistake in my original question. The question
would be

Can we replace null values with banks or spaces in the external table?

my test file is some thing like

1,name,country,,address,,
2,name,country,,address,,

I am able to create external table with 4,6,7 columns as NULL
I want the data in these columns as blank or spaces.

Thanks.

Reply With Quote
  #4 (permalink)  
Old 03-29-2006, 08:43 PM
Anurag Varma
Guest
 
Posts: n/a
Default Re: external table


Create a view on top of ext table and replace null with space/whatever
you want.

create myview as select nvl(col1,' '), ...... from ext_table;

Anurag

Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Big Table / Little Table Update Sigurd Hermansen Newsgroup comp.soft-sys.sas 0 01-06-2005 11:51 PM
Re: Big Table / Little Table Update nospam@HOWLES.COM (Howard Schreier Newsgroup comp.soft-sys.sas 0 12-29-2004 01:38 AM



All times are GMT. The time now is 08:04 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.