Re: how can I drop a column from a table??? Hurry up, please
From: Guido Konsolke <Konsolke_at_KHIS.KRUPP.COM>
Date: 1998/09/15
Message-ID: <35FE4004.B940480D_at_KHIS.KRUPP.COM>#1/1
Date: 1998/09/15
Message-ID: <35FE4004.B940480D_at_KHIS.KRUPP.COM>#1/1
Jorge schrieb:
> Hi, and please tell me, how can I drop a column from a table???
Hi Jorge,
- Create a new table for the data of the old table: create table new as select * from old; Then drop the old table and recreate it: create table old as select col1, col2, ... from new (omit the column yout want to delete);
- If you can't drop the table, issue an 'update old set column = null'.
Than create a view and omit the column.
As you see, there is no way to delete a column easily.
HTH, buenos tardes
Guido
Received on Tue Sep 15 1998 - 00:00:00 CEST