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

Can i Perform ADD & DELTE Operations on Column in the ta


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
babu_hi

New User


Joined: 11 Apr 2006
Posts: 93

PostPosted: Wed Nov 08, 2006 3:38 pm
Reply with quote

I have table i want to delete column in the table then i want to add new column also in the same table.can i perform those operations on the column?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Nov 09, 2006 9:19 am
Reply with quote

In case you meant a DB2 Table in your question. Its better to unload the table first and create a new table with altered attributes and load new table with requisites.
Back to top
View user's profile Send private message
babu_hi

New User


Joined: 11 Apr 2006
Posts: 93

PostPosted: Thu Nov 09, 2006 11:13 am
Reply with quote

Thanks for your reply , but what i am asking here can perform add and Delete operations on COLUMN in DB2 table?
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Nov 09, 2006 11:28 am
Reply with quote

babu,

Column can't be dropped off however you can add another column in a Table. And you use "ALTER TABLE" statement for the same.

Go thru this link to get syntax on how to use this statement.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts Use of Perform Thru Exit COBOL Programming 6
No new posts first column truncated in search result IBM Tools 13
Search our Forums:

Back to Top