How to drop column ?

Started by Vitali Djatsukalmost 23 years ago4 messagesgeneral
Jump to latest
#1Vitali Djatsuk
Vitali.Djatsuk@MicroLink.ee

Hi ALL,

ALTER TABLE palk DELETE COLUMN tempcol;
ERROR: parser: parse error at or near "DELETE"

#2Shridhar Daithankar
shridhar_daithankar@persistent.co.in
In reply to: Vitali Djatsuk (#1)
Re: How to drop column ?

On Saturday 12 April 2003 16:32, you wrote:

Hi ALL,

ALTER TABLE palk DELETE COLUMN tempcol;
ERROR: parser: parse error at or near "DELETE"

That is alter table drop column

Shridhar

#3Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Vitali Djatsuk (#1)
Re: How to drop column ?

Hi,

On Sat, 12 Apr 2003, Vitali Djatsuk wrote:

ALTER TABLE palk DELETE COLUMN tempcol;
ERROR: parser: parse error at or near "DELETE"

ALTER TABLE palk DROP COLUMN tempcol;

Regards,
--
Devrim GUNDUZ
devrim@gunduz.org devrim.gunduz@linux.org.tr
http://www.gunduz.org

#4Alam Surya
alam_surya@telkom.net
In reply to: Vitali Djatsuk (#1)
Re: How to drop column ?

How to drop column ?you have to write like this :

ALTER TABLE palk DROP COLUMN tempcol;

to clearly you can see the postgresql manual with : \h alter table

best regards

Alam Surya

----- Original Message -----
From: Vitali Djatsuk
To: pgsql-general@postgresql.org
Sent: Saturday, April 12, 2003 6:02 PM
Subject: [GENERAL] How to drop column ?

Hi ALL,

ALTER TABLE palk DELETE COLUMN tempcol;
ERROR: parser: parse error at or near "DELETE"