Re: Dummy question

Поиск
Список
Период
Сортировка
От Joe
Тема Re: Dummy question
Дата
Msg-id 1174594675.95579.1.camel@pampa
обсуждение исходный текст
Ответ на Dummy question  ("Ezequias R. da Rocha" <ezequias@fastcon.com.br>)
Ответы Re: Dummy question
Список pgsql-sql
Hi Ezequias,

On Thu, 2007-03-22 at 16:43 -0300, Ezequias R. da Rocha wrote:
> I must use a select * from some table but i must do a join and it must 
> be in the were clause.
> 
> I can't put select * from tabel1 as tb1, table2 as tb2
> where tb2.id = 2
> and tb1.fk_tb2ID = tb2.id

Try 

select tb1.* from tabel1 as tb1, table2 as tb2
where tb2.id = 2
and tb1.fk_tb2ID = tb2.id;

Joe



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

Предыдущее
От: "Ezequias R. da Rocha"
Дата:
Сообщение: Dummy question
Следующее
От: "Ezequias R. da Rocha"
Дата:
Сообщение: Re: Dummy question