Re: Subqueryes

Поиск
Список
Период
Сортировка
От Ezequias R. da Rocha
Тема Re: Subqueryes
Дата
Msg-id 460295CC.7030603@fastcon.com.br
обсуждение исходный текст
Ответ на Re: Subqueryes  (Richard Broersma Jr <rabroersma@yahoo.com>)
Список pgsql-sql
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
>
>   




В списке pgsql-sql по дате отправления:

Предыдущее
От: Hubertus Freiherr von Fuerstenberg
Дата:
Сообщение: Re: growth of the database
Следующее
От: "Ezequias R. da Rocha"
Дата:
Сообщение: Dummy question