Dummy question

From: "Ezequias R(dot) da Rocha" <ezequias(at)fastcon(dot)com(dot)br>
To: pgsql-sql(at)postgresql(dot)org
Subject: Dummy question
Date: 2007-03-22 19:43:54
Message-ID: 4602DC7A.60506@fastcon.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Joe 2007-03-22 20:17:55 Re: Dummy question
Previous Message Ezequias R. da Rocha 2007-03-22 14:42:20 Re: Subqueryes