Unix Technical Forum

What's the equivalent in PL/pgSQL

This is a discussion on What's the equivalent in PL/pgSQL within the pgsql Sql forums, part of the PostgreSQL category; --> Hi, I'm trying to find an equivalent plpgsql function as this: func x returns SETOF "Tablename" AS ' Select ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Sql

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 10:54 AM
=?ISO-8859-1?Q?K=D6PFERL_Robert?=
 
Posts: n/a
Default What's the equivalent in PL/pgSQL

Hi,
I'm trying to find an equivalent plpgsql function as this:

func x returns SETOF "Tablename" AS
'
Select * from "Tablename";
' language sql


How is this accomplished with plpgsql while not using a loop or a second and
third temporal table?

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:31 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com