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 > Castin Between Data Types

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-05, 06:39
alx_81 alx_81 is offline
Registered User
 
Join Date: Aug 2003
Posts: 23
Talking Castin Between Data Types

I don't remember the cast syntax in DB2 (i'm a SQL Server 2000 often user, not a DB2 one)..
Can anyone helps me?
__________________
Alx_81 =)
Reply With Quote
  #2 (permalink)  
Old 01-05-05, 07:22
achiola achiola is offline
Registered User
 
Join Date: May 2002
Location: General Deheza, Cba, Arg.
Posts: 273
in db2 is:
cast(field as datatype ccsid [xxx])

example:

cast(myfield as varchar(20))

saludos,
Abel.
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