Re: need help to write a function in postgresql

Поиск
Список
Период
Сортировка
От Laszlo Nagy
Тема Re: need help to write a function in postgresql
Дата
Msg-id 501B8DB7.5050700@shopzeus.com
обсуждение исходный текст
Ответ на Re: need help to write a function in postgresql  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: need help to write a function in postgresql  (Craig Ringer <ringerc@ringerc.id.au>)
Список pgsql-admin
> Then you can do:
>         select *
>     from retrieve_user('foo', 'bar');
>
> Personally I'd prefer to create view that wraps that select statement
> and then simply do a
>
>    select *
>    from user_view
>    where name = 'foo'
>    and password = 'bar'
It is also better because with a view, you can also do " name is null ".
But you cannot do that with a function (unless you write unnecessary
circumstancial code.)

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

Предыдущее
От: Laszlo Nagy
Дата:
Сообщение: Messed up time zones
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: need help to write a function in postgresql