pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to rename and drop a column in pg7.3?
2+ messages / 2 participants
[nested] [flat]

* How to rename and drop a column in pg7.3?
@ 2003-01-31 01:15  Vernon Wu <vernonw@gatewaytech.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Vernon Wu @ 2003-01-31 01:15 UTC (permalink / raw)
  To: pgsql-sql


I need to rename and remove columns of a table. Is any new way to accomplish the two tasks in 7.3? I have searched 
the online document and don't see any related information.

Thanks,

Vernon





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: How to rename and drop a column in pg7.3?
@ 2003-01-31 02:58  mallah@trade-india.com
  parent: Vernon Wu <vernonw@gatewaytech.com>
  0 siblings, 0 replies; 2+ messages in thread

From: mallah@trade-india.com @ 2003-01-31 02:58 UTC (permalink / raw)
  To: vernonw@gatewaytech.com; +Cc: pgsql-sql



Hmmm... both are supported in 7.3.x

ALTER TABLE rtfm  RENAME f1 to f2 ;
ALTER TABLE rtfm  DROP COLUMN f3;

hope it helps.

regds
mallah.

>
> I need to rename and remove columns of a table. Is any new way to accomplish the two tasks in
> 7.3? I have searched  the online document and don't see any related information.
>
> Thanks,
>
> Vernon
>
>
>
> ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off
> all lists at once with the unregister command
>    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)



-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-01-31 02:58 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-01-31 01:15 How to rename and drop a column in pg7.3? Vernon Wu <vernonw@gatewaytech.com>
2003-01-31 02:58 ` mallah@trade-india.com

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox