Re: From MySQL to PostgreSQL

Поиск
Список
Период
Сортировка
От Mariusz Pękala
Тема Re: From MySQL to PostgreSQL
Дата
Msg-id 20050222114816.GB18450@lisa.tutaj
обсуждение исходный текст
Ответ на From MySQL to PostgreSQL  (Zouari Fourat <fourat@gmail.com>)
Список pgsql-php
On 2005-02-22 12:07:39 +0100 (Tue, Feb), Zouari Fourat wrote:
> Am just migrating from mysql db to pgsql db, an want to ask about some
> clarifications on the php pgsql api :
>
> *> is pg_fetch_all faster than iterating with pg_fetch_assoc ?

You should test. :-)
I believe (I should test too) that it is faster, but with _large_ data sets
you will use a lot of memory, so things will slow down or break.
For known small results (SELECT ... LIMIT ..) why not.

> *> how to avoid sql injections, should i use the same methods with
> mysql ? (addslashes)

No, you should use pg_escape_string()


Вложения

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

Предыдущее
От: Zouari Fourat
Дата:
Сообщение: From MySQL to PostgreSQL
Следующее
От: Zouari Fourat
Дата:
Сообщение: PostgreSQL encoding