General question about DBI/DBD

Поиск
Список
Период
Сортировка
От Paul Tomblin
Тема General question about DBI/DBD
Дата
Msg-id 20011109110244.A25375@allhats.xcski.com
обсуждение исходный текст
Ответ на Re: problem connecting client to a postgresSQL server  (Gurudutt <guru@indvalley.com>)
Список pgsql-general
I've got a very big program that I wrote using Pg.pm, and now I'd like to
convert it to using DBD:Pg.  Can anybody give me any general tips on how
to do that?  Just convert all the $conn->exec to $DBH->do, or is it more
complicated than that?

Also, the big program does a whole bunch of
  $conn->exec("SELECT * FROM tablename WHERE indexed_column = '$key'");
and things like that.  Is there a way in DBD:Pg I can re-parse those
queries with "...indexed_column = :1" and then supply a different key each
time?  I remember when I used to write C programs that accessed Oracle
(about 8 years ago, so the details are hazy), that was a major performance
improvement.

--
Paul Tomblin <ptomblin@xcski.com>, not speaking for anybody
"I had to kill him -- he was starting to make sense."

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

Предыдущее
От: Gabriel Fernandez
Дата:
Сообщение: Precision problems with float8
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PSQL anc compile errors