pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ezequias R. da Rocha <ezequias@fastcon.com.br>
To: Richard Broersma Jr <rabroersma@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Subqueryes
Date: Thu, 22 Mar 2007 11:42:20 -0300
Message-ID: <460295CC.7030603@fastcon.com.br> (raw)
In-Reply-To: <43032.77931.qm@web31803.mail.mud.yahoo.com>
References: <43032.77931.qm@web31803.mail.mud.yahoo.com>

Perfect quite nice. I am doing things that I could not believe I could 
do without the community.

Thank you so much.

-- 
Atenciosamente
Ezequias Rodrigues da Rocha



Richard Broersma Jr escreveu:
>> update myTable
>> set date = (current_date + (Select daysToAdd from base.Table1 where 
>> myFKey_id = Table1Id) )
>> where Expire_Date = now()::Date;
>>     
>
> Does this work: http://www.postgresql.org/docs/8.2/interactive/sql-update.html
>
> UPDATE myTable
> SET date = current_date + B.daysToAdd
> FROM Table1 B
> WHERE myFKey_id = B.Table1Id;
>
> Regards,
> Richard Broersma Jr.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
>   





view thread (4+ messages)

Message-ID: <460295CC.7030603@fastcon.com.br>
Permalink:  ../460295CC.7030603@fastcon.com.br/
Also on:    postgresql.org/message-id/460295CC.7030603@fastcon.com.br

 · 

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: ezequias@fastcon.com.br, rabroersma@yahoo.com
  Subject: Re: Subqueryes
  In-Reply-To: <460295CC.7030603@fastcon.com.br>

* 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