Alter Table

Post Reply
chavalis
Posts: 19
Joined: Thu Dec 27, 2001 12:47 am

Alter Table

Post by chavalis »

I want alter the table and add column to the table.The table has so much data.Can you help me how to do that?
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

Alter Table

Post by mark »

Create a new table with the desired schema. Copy the data from the old table to new using
insert into NEWTABLE select a,b,c,'NEWFIELDDEFAULTVALUE',d,e from OLDTABLE
Post Reply