|
Re: how to delete several columns in a table? [message #1833 is a reply to message #1832] |
Mon, 03 June 2002 09:19 |
ckr
Messages: 13 Registered: May 2002
|
Junior Member |
|
|
u can copy the table with only the columns u want into a new table from the old table.drop the old table .and rename the new table with oldtable name
let's say u are creating a table named new_table from the old_table with only the columns u want like.
create table new_table as
select column1,column2,column3 from old _table;
now after the table is created.drop the old_table
drop table old_table;
then rename the new_table as old_table;
rename new_table to old_table;
hope this solves your problem.
|
|
|