Re: Trying to execute several queries involving temp tables in a PHP script

Поиск
Список
Период
Сортировка
От Leif Biberg Kristensen
Тема Re: Trying to execute several queries involving temp tables in a PHP script
Дата
Msg-id 201206131715.49567.leif@solumslekt.org
обсуждение исходный текст
Ответ на Trying to execute several queries involving temp tables in a PHP script  (Alexander Farber <alexander.farber@gmail.com>)
Ответы Re: Trying to execute several queries involving temp tables in a PHP script  (Misa Simic <misa.simic@gmail.com>)
Список pgsql-general
 Onsdag 13. juni 2012 15.12.33 skrev Alexander Farber :

> Any ideas please on how to handle this situation
> in PHP scripts, do I really have to encapsulate
> my calls into a pl/PgSQL function?

I believe that Misa Simic's idea that you can do it all in a single query
without temp tables is correct. But anyway, it's always a good idea to
encapsulate multiple interdependent queries in a single pl/pgsql function. I
tend to keep my PHP code as simple as possible, and do most of the work inside
the database.

regards, Leif
http://code.google.com/p/yggdrasil-genealogy/

В списке pgsql-general по дате отправления:

Предыдущее
От: Misa Simic
Дата:
Сообщение: Re: Trying to execute several queries involving temp tables in a PHP script
Следующее
От: Misa Simic
Дата:
Сообщение: Re: Trying to execute several queries involving temp tables in a PHP script