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 > Datatype.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-07, 16:06
bondada_kanth bondada_kanth is offline
Registered User
 
Join Date: Jan 2007
Posts: 5
Datatype.

Hi
I'm new to db2 and i need to
1. can someone help me in understanding what the below datatype expression.
2. Use equivalent datatype in ORACLE

If some one can help me in getting equivalent datatypes in oracle it would be great help.

a. Decimal( 0, 1, 0 )
b. DIGITS(YEAR( DW_DATE ))
c. DATE( calnder_date + 719892)


Thanks in advance,
Kanth.
Reply With Quote
  #2 (permalink)  
Old 01-31-07, 01:03
rahul_s80 rahul_s80 is offline
Registered User
 
Join Date: Jul 2006
Location: Pune , India
Posts: 433
Quote:
Originally Posted by bondada_kanth
a. Decimal( 0, 1, 0 )
b. DIGITS(YEAR( DW_DATE ))
c. DATE( calnder_date + 719892)
not data type, they are functions

a>decimal (number,precision,scale)
b> Converts an integer or decimal value into a character string with leading zeros. Both the sign
indicator and the decimal point are lost in the translation.
c> date of (calnder_date + no of days )
Reply With Quote
  #3 (permalink)  
Old 01-31-07, 09:45
bondada_kanth bondada_kanth is offline
Registered User
 
Join Date: Jan 2007
Posts: 5
Do someone know equivalent function in oracle.
Reply With Quote
  #4 (permalink)  
Old 01-31-07, 09:50
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
This redbook should answer this question and more ..

http://publib-b.boulder.ibm.com/Redb...7048.html?Open

sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 01-31-07, 10:40
bondada_kanth bondada_kanth is offline
Registered User
 
Join Date: Jan 2007
Posts: 5
document didn't help.
Reply With Quote
  #6 (permalink)  
Old 02-01-07, 03:46
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
You should probably ask your question in an Oracle group.
__________________
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