Re: Dummy question - Mailing list pgsql-sql

From Ezequias R. da Rocha
Subject Re: Dummy question
Date
Msg-id 4602E67D.6080001@fastcon.com.br
Whole thread Raw
In response to Re: Dummy question  (Joe <dev@freedomcircle.net>)
List pgsql-sql
Thank you very much Joe.

Ezequias
Joe escreveu:
> 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
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly
>
>   


-- 
Atenciosamente
Ezequias Rodrigues da Rocha



pgsql-sql by date:

Previous
From: Joe
Date:
Subject: Re: Dummy question
Next
From: Michael Fuhr
Date:
Subject: Re: How to declare cursor if tablename is a variable?