Re: Converting stored procedure from mySQL - Mailing list pgsql-novice

From Verena Ruff
Subject Re: Converting stored procedure from mySQL
Date
Msg-id 200606161836.50280.lists@triosolutions.at
Whole thread Raw
In response to Re: Converting stored procedure from mySQL  (Andreas Hjortsberg <andreas.hjortsberg@x-change.se>)
Responses Re: Converting stored procedure from mySQL  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-novice
Hi,

Am Freitag, 16. Juni 2006 17:39 schrieb Andreas Hjortsberg:
> Basicly I would like to return all the offices and the amount of their
> orders even if they are null. Is it possible to add a temporary table to
> the procedure and instert the data to it,  and then make a select * from
> my_temp_table. Can a function return the result of a temporary table?
Return to what? To the client application? In this case you should consider
using a view instead of this function. As you say you're migrating from MySQL
and MySQL didn't support views in older versions, maybe you came up with this
workaround.

Regards,
Verena

pgsql-novice by date:

Previous
From: Andreas Hjortsberg
Date:
Subject: Re: Converting stored procedure from mySQL
Next
From: "Frances Collier"
Date:
Subject: Re: windows update screwed up PostgreSQL -- Problem solved