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 DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


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