Re: Porting Code to Postgresql

Поиск
Список
Период
Сортировка
От Richard Welty
Тема Re: Porting Code to Postgresql
Дата
Msg-id Mahogany-0.66.0-1542-20031015-133311.00@averillpark.net
обсуждение исходный текст
Ответ на Re: Porting Code to Postgresql  (Dennis Gearon <gearond@fireserve.net>)
Ответы Re: Porting Code to Postgresql
Список pgsql-general
On Wed, 15 Oct 2003 08:43:07 -0700 Dennis Gearon <gearond@fireserve.net> wrote:

> >$count = pg_numrows( $result);
> >for( $i = 0; $i < $count; $i++){
...
> in case of no rows, maybe do:
>
> $count = pg_numrows( $result);
> while ( 0 < $result ){
...

shouldn't make a difference; in php, the condition on a for() should be at
the top of the loop anyway.

richard
--
Richard Welty                                         rwelty@averillpark.net
Averill Park Networking                                         518-573-7592
    Java, PHP, PostgreSQL, Unix, Linux, IP Network Engineering, Security

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: VACUUM degrades performance significantly. Database becomes unusable!
Следующее
От: Holger Marzen
Дата:
Сообщение: Re: orphaned psql's