Functions with dynamic queries - Mailing list pgsql-sql

From Gabriel Dovalo Carril
Subject Functions with dynamic queries
Date
Msg-id 3CECC5C5.BDF77592@terra.es
Whole thread Raw
Responses Re: Functions with dynamic queries  ("Rajesh Kumar Mallah." <mallah@trade-india.com>)
List pgsql-sql
Hi,
I would appreciate it if somebody could send me some examples
(or url) on how to create functions with text parameters, use these
parameters to build a dynamic query and return a value obtained from
that query.
A very simple case would be:

Create table people (nif    char(12),name    varchar(40),primary (nif)
);

And now to create a function to return "name" value giving
"nif" values as a parameter.

Thanks

--
Gabriel D.


pgsql-sql by date:

Previous
From: rhema@bhasin.co.in
Date:
Subject: ...
Next
From: "Joel Burton"
Date:
Subject: Re: Turning column into row