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
 

 

Can I delete a column from a table in DB2?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
jayanta_nit

New User


Joined: 13 Apr 2006
Posts: 22
Location: hyderabad

PostPosted: Mon Mar 05, 2007 3:48 pm    Post subject: Can I delete a column from a table in DB2?
Reply with quote

Can I delete a column from a table in DB2????
Back to top
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Mon Mar 05, 2007 4:42 pm    Post subject:
Reply with quote

No.

O.
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Tue Mar 06, 2007 3:35 pm    Post subject:
Reply with quote

While you are talking about DB2, DELETE always refers to data and DROP refers to a DB2 Object.

Once a table is created you cannot RENAME it.
You cannot drop a column and add a column in between.
You can add a column at the end of the table. Alter table ADD COLUMN would obviously add the column at the end. Thanks..!
Back to top
View user's profile Send private message
jayanta_nit

New User


Joined: 13 Apr 2006
Posts: 22
Location: hyderabad

PostPosted: Tue Mar 06, 2007 3:38 pm    Post subject: Re: Can I delete a column from a table in DB2?
Reply with quote

thanks vini_srcna
Back to top
View user's profile Send private message
H Muraleedhar

New User


Joined: 03 Mar 2009
Posts: 12
Location: Chennai

PostPosted: Wed Mar 04, 2009 10:27 am    Post subject:
Reply with quote

Is there any way to change the constraints ( data type ) of a column in DB2 ( version 8.1) ?
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