Re: how to simulate UPdate ...?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: how to simulate UPdate ...?
Дата
Msg-id Pine.BSF.4.21.0102051631230.39621-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на how to simulate UPdate ...?  ("guard" <guard@ficnet.net>)
Список pgsql-sql
Isn't this equivalent to?
update table1 set na1=(select table2.na1 from table2 where  table1.no=table2.no);

Which can also be invalid if there can bemultiple rows returned by the subselectsince there'd be no way to know
whichtable2.na1you'd want without more info.
 

On Fri, 2 Feb 2001, guard wrote:

> I not run update.... in Pgsql
> 
> please tell me other method
> thanks
> 
> ======================================
> update table1 a set na1=
> (select table2.na1 from table2,table1
> where table1.no=table2.no
> and a.no=table1.no);
> 
> 
> 
> 



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

Предыдущее
От: David Olbersen
Дата:
Сообщение: Re: SQL Join - MySQL/PostgreSQL difference?
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: How to modify type in table?