pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: The Hermit Hacker <scrappy@hub.org>
To: k.c. hemelstrand <kc@avsupport.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: update syntax error?
Date: Sun, 20 Aug 2000 16:27:17 -0300 (ADT)
Message-ID: <Pine.BSF.4.21.0008201626550.801-100000@thelab.hub.org> (raw)
In-Reply-To: <000601c00ac0$081275c0$122f7418@avsupport.com>


UPDATE <table> SET field1=<value>,field2=<value>

On Tue, 15 Aug 2000, k.c. hemelstrand wrote:

> Can anybody help with why I am receiving the error below?
> 
> Thanks
> K.C.
> 
> 
> parts=# \d av_parts
>                                      Table "av_parts"
>       Attribute      |    Type     |                       Modifier                        
> ---------------------+-------------+-------------------------------------------------------
>  itemid              | integer     | not null default nextval('av_parts_itemid_seq'::text)
>  vendorid            | integer     | 
>  partnumber          | varchar(25) | 
>  alternatepartnumber | varchar(25) | 
>  nsn                 | varchar(15) | 
>  description         | varchar(50) | 
>  condition           | varchar(10) | 
>  quantity            | integer     | 
>  rawpartnumber       | varchar(25) | 
>  rawalternatenumber  | varchar(25) | 
>  rawnsnnumber        | varchar(15) | 
>  date                | integer     | 
>  cagecode            | varchar(10) | 
> Indices: av_parts_alternatepartnumber_in,
>          av_parts_itemid_key,
>          av_parts_nsn_index,
>          av_parts_partnumber_index,
>          av_parts_rawalternatenumber_ind,
>          av_parts_rawnsnnumber_index,
>          av_parts_rawpartnumber_index,
>          av_parts_vendorid_index
> 
> 
> parts=# UPDATE av_parts
> parts-# SET rawalternaternumber = 'NULL' AND alternatepartnumber = 'NULL'
> parts-# WHERE rawalternatenumber = 'IVA81A';
> ERROR:  left-hand side of AND is type 'unknown', not 'bool'
> 

Marc G. Fournier                   ICQ#7615664               IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org 




view thread (3+ messages)  latest in thread

Message-ID: <Pine.BSF.4.21.0008201626550.801-100000@thelab.hub.org>
Permalink:  ../Pine.BSF.4.21.0008201626550.801-100000@thelab.hub.org/
Also on:    postgresql.org/message-id/Pine.BSF.4.21.0008201626550.801-100000@thelab.hub.org

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: scrappy@hub.org, kc@avsupport.com
  Subject: Re: update syntax error?
  In-Reply-To: <Pine.BSF.4.21.0008201626550.801-100000@thelab.hub.org>
  References: <000601c00ac0$081275c0$122f7418@avsupport.com> <Pine.BSF.4.21.0008201626550.801-100000@thelab.hub.org>

* 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