| From: | "dfx" <dfx(at)dfx(dot)it> |
|---|---|
| To: | <pgsql-general(at)postgresql(dot)org> |
| Subject: | automatic build of return type |
| Date: | 2007-01-13 10:14:48 |
| Message-ID: | 000201c736fb$a8b45430$f400a8c0@SEMPRON |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi all
I am coverting a database with several stored procedures from MS SQL Server
to PostgreSQL 8.2 and I have the following doubt:
With MS Sql a stored procedure containing the statement "SELECT * FROM
TABLE_A INNER JOIN TABLE_B" automatically creates and return a recordset
with all the fields of TABLE_A followed by all the fields of TABLE,
instead, in my opinion, in a Postgresql function (language plpgsql) I MUST
create by hand a type containing all the fields (or create BY hand a list in
the declare space); The question is: It exist a method to create
automatically the return type to avoid to write it by hand?
Thank you.
Domenico
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Shane Ambler | 2007-01-13 12:43:20 | Re: XEON familiy 5000, 5100 or 5300? |
| Previous Message | Shane Ambler | 2007-01-13 09:34:18 | Re: PostgreSQL Connections? |