Re: Postgres Pg_connect PHP

Поиск
Список
Период
Сортировка
От Vyacheslav Kalinin
Тема Re: Postgres Pg_connect PHP
Дата
Msg-id 9b1af80e0906091143y741db4f5v3dc55f5ad833d77a@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Postgres Pg_connect PHP  (Vyacheslav Kalinin <vka@mgcp.com>)
Ответы Re: Postgres Pg_connect PHP  (Dimitri Fontaine <dfontaine@hi-media.com>)
Список pgsql-general
Forgot about COPY command in my previous reply:

  $conn = pg_pconnect("dbname=foo");
  $fd = fopen('file.dat', 'r');
 
pg_query($conn, "copy bar from stdin");
  while (!feof($fd)) {
        
pg_put_line($conn, fgets($fd));
  }

  fclose($fd);
  pg_put_line($conn, "\\.\n");
  pg_end_copy($conn);

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

Предыдущее
От: Vyacheslav Kalinin
Дата:
Сообщение: Re: Postgres Pg_connect PHP
Следующее
От: Agoston Postgres
Дата:
Сообщение: aliases for sequences and other DB objects?