How you add column in between a table?

Ask question on - DataBase Concepts, IBM Mainframe DB2, DB2/UDB, DB2 Tools, SQL , DB2 programming with languages like COBOL, PL1.

Moderators: Kalicharan, Moderator Group

Post Reply
Posts: 8
Joined: Sun Nov 18, 2007 12:40 pm
Location: India

How you add column in between a table?

Post by neeraja » Wed Dec 26, 2007 7:19 pm


Please let me "How to add column in between a table ? " kindly give a sample.

With regards,


User avatar
Active Member
Posts: 65
Joined: Tue Mar 27, 2007 8:41 am
Location: Troy, MI USA

Post by DavidatK » Thu Dec 27, 2007 4:03 am

There really is no reason to add a new column in between two existing columns in DB2. You would have to unload the existing table. Delete it, re-define it with the new structure and reload the data.

When we add columns, we simply add to the end of the structure. The table does not have to be unloaded/reloaded. When you do the SELECT you declare the order you want to retrieve the columns.


Post Reply


Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions

Other References
Mainframe Tools and others