| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера