IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Alter datatyes of a column in a table


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Madhu Reddy

New User


Joined: 28 Sep 2006
Posts: 56

PostPosted: Fri Dec 01, 2006 1:00 pm
Reply with quote

Hi,

I need to alter the datatype for a colmn in a table is it possible if yes
how ?

Please reply as early as possible

Thanks in advance !
Madhu
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Fri Dec 01, 2006 11:01 pm
Reply with quote

It is possible with limitations and considerations between compatibale data types.

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dsnsqj10/5.11?ACTION=MATCHES&REQUEST=alter+column&TYPE=FUZZY&SHELF=&DT=20040216135741&CASE=&searchTopic=TOPIC&searchText=TEXT&searchIndex=INDEX&rank=RANK&ScrollTOP=FIRSTHIT#FIRSTHIT

See:
ALTER TABLE ALTER COLUMN SET DATA TYPES

Also note DB2 allows data coversions at load time, so if conversion is between compatible data types, then down load data, alter table, and load data with conversion.


If data types are not compatible

- Download data.
- Drop Table
- Create table with new definitions
- Modify data if required or set new data
- Load data.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top