Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Delete a column from a table!

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
J.P.R.Kumar

New User


Joined: 02 Apr 2008
Posts: 11
Location: Chennai

PostPosted: Mon Jun 01, 2009 2:38 pm    Post subject: Delete a column from a table!
Reply with quote

Hi,
I would like to delete a column from a table.
Should i drop the table to do that and recreate it again?
Can somebody guide me on that?

Thanks,
Phani
Back to top
View user's profile Send private message

guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Mon Jun 01, 2009 3:19 pm    Post subject:
Reply with quote

Hello Phani,

Only easy to delete the column from Db2 table is to drop the table & create it again without unwanted column.
Back to top
View user's profile Send private message
Escapa

Senior Member


Joined: 16 Feb 2007
Posts: 1399
Location: IL, USA

PostPosted: Mon Jun 01, 2009 3:45 pm    Post subject:
Reply with quote

Hi Phani,

It is discussed so many times....

http://www.ibmmainframes.com/viewtopic.php?t=7539&highlight=delete+column
http://www.ibmmainframes.com/viewtopic.php?t=20931&highlight=delete+column
http://www.ibmmainframes.com/viewtopic.php?t=2955&highlight=delete+column
http://www.ibmmainframes.com/viewtopic.php?t=18603&highlight=delete+column
http://www.ibmmainframes.com/viewtopic.php?t=25751&highlight=delete+column
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
This topic is locked: you cannot edit posts or make replies. DB2 query Using Recursion, Converting... smilewithashu2 DB2 3 Tue Jan 03, 2017 12:50 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us