If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > different data type

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-23-07, 16:02
jinsezh jinsezh is offline
Registered User
 
Join Date: Aug 2006
Posts: 33
Question different data type

Hi There,

I wonder if the following pair will be considered as same data type or not:

char(15) - char(18)
char(15) - varchar(18)

When I link the two columns char(15) to char(18), would DB2 do casting or not?

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-25-07, 17:36
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The length is completely irrelevant for type propagation considerations. Thus, you can't overload UDFs with CHAR(15) and CHAR(18), for example.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On