Re: Delete COLUMN data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



How about:

UPDATE table_name SET column1 = NULL, column2 = NULL, column3 = NULL



 

> -----Original Message-----
> From: pgsql-admin-owner@xxxxxxxxxxxxxx 
> [mailto:pgsql-admin-owner@xxxxxxxxxxxxxx] On Behalf Of smiley2211
> Sent: Thursday, August 09, 2007 10:27 AM
> To: pgsql-admin@xxxxxxxxxxxxxx
> Subject:  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
>
--------------------------------------------------------

NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faq


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux