Skip site navigation (1) Skip section navigation (2)

joining a table with a function

From: "Jaime Casanova" <el_vigia_ec(at)hotmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: joining a table with a function
Date: 2004-05-31 14:19:49
Message-ID: BAY8-F13ZYNX6Mma0n70001af8a@hotmail.com (view raw or flat)
Thread:
Lists: pgsql-sql
hi all,

i have a function of a user defined type it returns a record of values but 
just a row.
select * from rec_f_consultar_alumno(a.ent_codigo, a.alu_codigo)

what i want to do now is a select in wich i can do a seq scan or an index 
scan of a table and
pass the values i retrieve into the function. the select have to retrieve 
the result of the function.
i can do that whit a function with setof but i want to know if it is 
possible to do it with a select

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


pgsql-sql by date

Next:From: Tom LaneDate: 2004-06-01 02:05:11
Subject: Re: insert or update violates foreign key constraint.why?
Previous:From: sadDate: 2004-05-31 07:52:42
Subject: type regclass casting

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group