Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2002
    Posts
    9

    Question Unanswered: How to return a result set in functions in PostGreSQL?

    How can I write a function in pgsql which has the same result returned as the stored procedure in mssql?

    stored proc. in mssql:
    create procedures dbo.test1
    as
    select * from table1
    go

    the above stored proc. will return all the records in table1.
    How can I write it in pgsql?

    thanks.

  2. #2
    Join Date
    Mar 2004
    Posts
    110

    vieuw perhaps?

    Why would you want to write a functino like that if you can simply create a view?

    -Ed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •