From: Ezequias R. da Rocha <ezequias@fastcon.com.br>
To: pgsql-sql@postgresql.org
Subject: Dummy question
Date: Thu, 22 Mar 2007 16:43:54 -0300
Message-ID: <4602DC7A.60506@fastcon.com.br> (raw)
Hi list,
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
I don't would like to use this select statement because the select
brings us both columns (all columns) of both tables.
ps: I don't want to put all fields names too.
Can someone tell me if there is any way to put on the select only the
fields of my first table ?
Regards...
--
Atenciosamente
Ezequias Rodrigues da Rocha
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
Subject: Re: Dummy question
In-Reply-To: <4602DC7A.60506@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