Re: update multiple columns

From: Oliver Kohll <oliver(at)gtwebmarque(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: update multiple columns
Date: 2002-07-12 00:15:03
Message-ID: 200207120015.03507.oliver@gtwebmarque.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

UPDATE growernet_user
SET email='madegn(at)hotmail(dot)com', username='adegn'
WHERE user_id='696'

?

Oliver

> I am almost 100% positive that I have been able to set multiple columns
> while doing an update statement but for the life of me I can't remember
> exactly how I did it. I tried using parenthesis, comas, and "and" but none
> of it worked. Have I lost my mind. If not, can anyone see my mistake?
>
> My code is below. TIA
>
> Julie
>
>
> update growernet_user
> set email='madegn(at)hotmail(dot)com'
> set username='adegn'
> where
> user_id=696

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Elsa LARREUR 2002-07-12 12:27:36 CREATE DB --> How create virgin db??
Previous Message Juliet May 2002-07-11 23:26:36 Re: update multiple columns