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: Joe <dev@freedomcircle.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: Dummy question
Date: Thu, 22 Mar 2007 17:26:37 -0300
Message-ID: <4602E67D.6080001@fastcon.com.br> (raw)
In-Reply-To: <1174594675.95579.1.camel@pampa>
References: <4602DC7A.60506@fastcon.com.br>
	<1174594675.95579.1.camel@pampa>

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




view thread (3+ messages)

Message-ID: <4602E67D.6080001@fastcon.com.br>
Permalink:  ../4602E67D.6080001@fastcon.com.br/
Also on:    postgresql.org/message-id/4602E67D.6080001@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, dev@freedomcircle.net
  Subject: Re: Dummy question
  In-Reply-To: <4602E67D.6080001@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