Re: user function and bind

Поиск
Список
Период
Сортировка
От Gary Chambers
Тема Re: user function and bind
Дата
Msg-id AANLkTimRVMixtmFlY3vU0766Ep4_rvAoA_oJnQZGsUuR@mail.gmail.com
обсуждение исходный текст
Ответ на user function and bind  (David Harel <hareldvd@gmail.com>)
Список pgsql-sql
David,

> I need an example how to write user function with columns binding and how to
> use it on PHP

If I'm understanding your request correctly:

$dbh = pgpconnect("dbname=db host=dbhost user=dbuser password=pw");
$query = 'SELECT * FROM table WHERE x=$1 AND y=$2 AND z=$3';
$stmt = pg_query_params($dbh, $query, array($x, $y, $z));

-- Gary Chambers

/* Nothing fancy and nothing Microsoft! */


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

Предыдущее
От: Justin Graf
Дата:
Сообщение: Re: user function and bind
Следующее
От: tlange@gwdg.de
Дата:
Сообщение: