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
 
ALTER staement to delete the multiple columns

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

New User


Joined: 15 Feb 2011
Posts: 5
Location: Pune

PostPosted: Wed Mar 16, 2011 12:17 pm    Post subject: ALTER staement to delete the multiple columns
Reply with quote

Hi,

With the help of ALTER statement I want to delete the columns till 34.
Please find the attachment which contain the dataset screenshot


Regards,
Prasad Toshniwal

Attachment deleted
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10396
Location: italy

PostPosted: Wed Mar 16, 2011 12:38 pm    Post subject: Reply to: ALTER staement to delete the multiple columns
Reply with quote

Do not post attachment, not everybody can see them
furthermore screen shots just waste space
a plain text cut and paste and the code tags will be more effective

as ( topic is unrelated but there are screenshots taken wit text cut and paste )
http://ibmmainframes.com/viewtopic.php?t=53264&highlight=ismf
Back to top
View user's profile Send private message
T Prasad

New User


Joined: 15 Feb 2011
Posts: 5
Location: Pune

PostPosted: Wed Mar 16, 2011 1:04 pm    Post subject: Reply to: ALTER staement to delete the multiple columns
Reply with quote

Hi,

Please ignore the attachment and advice on my query.

Regards,
Prasad T
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed Mar 16, 2011 2:40 pm    Post subject:
Reply with quote

now you should post the sql as text before we can advice.
But you can not ALTER TABLE DELETE COLUMNS
Back to top
View user's profile Send private message
rakesh1155

New User


Joined: 21 Jan 2009
Posts: 84
Location: India

PostPosted: Wed Mar 16, 2011 3:06 pm    Post subject:
Reply with quote

Hello,

I thought that was one big difference in DB2 compared to other databases like ORACLE... (though there would be many differences)

One cannot delete columns in DB2 by ALTER command. If a column has to be deleted, it can only be done by DROP and CREATE TABLE.

Please correct me if I am mistaken.

-Thanks,
Rakesh.
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 Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm
No new posts Can EDCICONV convert EBCDIC to ASCII... natt.sut IBM Tools 3 Fri Nov 17, 2017 8:46 pm
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm

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