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
 

 

Column deletion in table

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

New User


Joined: 06 Feb 2007
Posts: 20
Location: Bangalore

PostPosted: Mon Nov 05, 2007 7:48 pm    Post subject: Column deletion in table
Reply with quote

Hi all,


Anyone please let me know
1. How to delete a particular column in DB2 from a table.
2. How to change the size of defined field in the table.


Thanks in advance.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Mon Nov 05, 2007 7:57 pm    Post subject: Re: Column deletion in table
Reply with quote

hibuddies wrote:
Hi all,


Anyone please let me know
1. How to delete a particular column in DB2 from a table.
2. How to change the size of defined field in the table.


Thanks in advance.


1. Drop the table and redefine it.

2. In most cases drop the table and redefine it. Look at the alter table command in the SQL Reference.
Back to top
View user's profile Send private message
hibuddies
Warnings : 1

New User


Joined: 06 Feb 2007
Posts: 20
Location: Bangalore

PostPosted: Mon Nov 05, 2007 8:28 pm    Post subject: Reply to: Column deletion in table
Reply with quote

Hi..

Ya i tried ALTER command with MODIFY option but it doesnt support in DB2. Is there any other way to implement this task? If so please let me know.

Thanks.
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 SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 2 Sun Nov 06, 2016 8:11 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


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