Re: user defined variables

Поиск
Список
Период
Сортировка
От Moritz Sinn
Тема Re: user defined variables
Дата
Msg-id m34rgxttfh.fsf@freesources.org
обсуждение исходный текст
Ответ на Re: user defined variables  ("Joel Burton" <joel@joelburton.com>)
Список pgsql-general
"Joel Burton" <joel@joelburton.com> writes:



> In the psql client, you can set a variable with the "\set" command, or using
> "--set" at startup. So "psql --set UID=xxxx" will let you use the the UID as
> "SELECT * FROM USER WHERE uid= :UID".
>
> Will this work for you?
>
> - J.

well, i'm using the php functions for communicating with postgresql. but
this means that it is possible.
has someone an idea how i can set such a variable when i open the
connection with php?

thanks,
 moritz

--
<grin> seen jhm
<dpkg> jhm is Sarek, and jhm is on the channel right now!
* JHM wonders why dpkg remembers that particular nick.
<grin> dpkg: Sarek? ermm, sure, and I am Khan
    -- Seen on #Debian

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

Предыдущее
От: "Olonichev Sergei"
Дата:
Сообщение: Re: How to add big amounts of data into database?
Следующее
От: "Russell Black"
Дата:
Сообщение: Case Insensitive Data Type