Re: Delete COLUMN data

From: "Igor Neyman" <ineyman(at)perceptron(dot)com>
To: "smiley2211" <smiley2211(at)yahoo(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Delete COLUMN data
Date: 2007-08-09 14:50:18
Message-ID: F4C27E77F7A33E4CA98C19A9DC6722A20221A335@EXCHANGE.corp.perceptron.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

It is called "update":

UPDATE <table_name> SET <column1> = NULL, <column2> = NULL, <column2> =
NULL;

-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of smiley2211
Sent: Thursday, August 09, 2007 10:27 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Delete COLUMN data

Hello all,

I need to DELETE all the DATA from 3 columns in my table...what is the
BEST way to handle this??? I don't want to DROP the columns just clear
out ALL the data in those 3 fields...

Thanks...Michelle
--
View this message in context:
http://www.nabble.com/Delete-COLUMN-data-tf4242917.html#a12073367
Sent from the PostgreSQL - admin mailing list archive at Nabble.com.

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message smiley2211 2007-08-09 14:55:17 Re: Delete COLUMN data
Previous Message Sattler, Thomas (IT) 2007-08-09 14:37:46 Re: Delete COLUMN data