pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: postgresql <pgsql@symcom.com>
To: PgSQL-SQL <pgsql-sql@postgresql.org>
Subject: syntax prob
Date: Fri, 23 Feb 2001 21:24:35 -0500
Message-ID: <200102240217.f1O2Hhx35303@mail.postgresql.org> (raw)

I am away from my server for the weekend and I need a little help.

when doing  updates of multiple fields there commas between 
the  elements?

 I mean

update table set cname = 'Bill', caddress = '2nd floor' where acode = 
'AVAN';

I refer to the space between 'Bill' and caddress. 

if I could get to the server I would just try it. what happens if you have 
only 1 field to update and you add a comma, like this

update table set cname = 'Bill',  where acode = 'AVAN';

I am trying to concatenate an update string and I would love to not 
have to worry about the comma. I guess I could figure out how many 
things have changed then add commas... but I could also  wish for it 
to be easier.

Ted





view thread (2+ messages)  latest in thread

Message-ID: <200102240217.f1O2Hhx35303@mail.postgresql.org>
Permalink:  ../200102240217.f1O2Hhx35303@mail.postgresql.org/
Also on:    postgresql.org/message-id/200102240217.f1O2Hhx35303@mail.postgresql.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: pgsql@symcom.com
  Subject: Re: syntax prob
  In-Reply-To: <200102240217.f1O2Hhx35303@mail.postgresql.org>
  References: <200102240217.f1O2Hhx35303@mail.postgresql.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