Re: Really simple question.. - Mailing list pgsql-general

From Jean-Christian Imbeault
Subject Re: Really simple question..
Date
Msg-id 3DED8891.9030306@mega-bucks.co.jp
Whole thread Raw
In response to Really simple question..  ("Williams, Travis L, NPONS" <tlw@att.com>)
List pgsql-general
Williams, Travis L, NPONS wrote:

Maybe I missed this somewhere.. but how do you drop a whole row

That one is easy:

delete from TABLE where col1=25;

or update a whole row with nulls easily?

Don't know that one. Would be interesting in knowing if there is a way.

The only way I can think of is to delete the row and then re-insert it,
but that depends on how the table is set up (i.e. does it allow NULL in
all fields?):

delete from TABLE where col1=25;
insert into TABLE(col1) values(25);

Just my 2 cents ...

Jc




pgsql-general by date:

Previous
From: "Williams, Travis L, NPONS"
Date:
Subject: Really simple question..
Next
From: David Garamond
Date:
Subject: Re: Postgresql -- initial impressions and comments