Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 1191
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 How to delete large data. Mounika Nemani DB2 1 Wed Jun 13, 2018 1:58 pm
No new posts Extracting DDL for all list of intere... Ashishpanpaliya DB2 5 Mon May 21, 2018 4:08 pm
No new posts Searching a table for the field name? socker_dad COBOL Programming 8 Sat Mar 31, 2018 2:57 am
No new posts Need inputs on DB2 tablespace/table r... ashek15 DB2 3 Sat Mar 24, 2018 11:49 pm
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us