pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@rice.edu>
To: pgsql-sql@postgresql.org
Subject: Re: delete queires
Date: Mon, 29 Oct 2001 11:35:37 -0600
Message-ID: <20011029113537.C21886@rice.edu> (raw)
In-Reply-To: <000801c15f2c$2ff6fcc0$5b0e7ad5@r355000075>
References: <000801c15f2c$2ff6fcc0$5b0e7ad5@r355000075>

On Sat, Oct 27, 2001 at 10:13:10PM +0100, stephen wrote:
> i was wondering if it's possible to make a delete query to delete only one of the two fields in a table.  I have tried only putting that field as the "from" but it still deletes the other field also?

Steve,

If I understand your question, you don't want a DELETE, you want an UPDATE,
where you set one field to NULL (or other vaule you're using to indicate
an absence of information).

Examples of what you want to do are always best.

Ross

-- 
Ross Reedstrom, Ph.D.                                 reedstrm@rice.edu
Executive Director                                  phone: 713-348-6166
Gulf Coast Consortium for Bioinformatics              fax: 713-348-6182
Rice University MS-39
Houston, TX 77005



view thread (4+ messages)  latest in thread

Message-ID: <20011029113537.C21886@rice.edu>
Permalink:  ../20011029113537.C21886@rice.edu/
Also on:    postgresql.org/message-id/20011029113537.C21886@rice.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: reedstrm@rice.edu
  Subject: Re: delete queires
  In-Reply-To: <20011029113537.C21886@rice.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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