Re: plpgsql vs. SQL in stored procedures

Поиск
Список
Период
Сортировка
От Christopher Browne
Тема Re: plpgsql vs. SQL in stored procedures
Дата
Msg-id m3r7v9zad6.fsf@wolfe.cbbrowne.com
обсуждение исходный текст
Ответ на plpgsql vs. SQL in stored procedures  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Ответы Re: plpgsql vs. SQL in stored procedures
Список pgsql-sql
mail@webthatworks.it (Ivan Sergio Borgonovo) wrote:
> Is there a way to declare variables and use IF in plain SQL, not in
> plpgsql inside stored procedures?

The forthcoming support for recursive queries using a WITH clause
might provide, after a fashion, a way to declare variables.

As for IF, there is a functional equivalent to it in the form of the
SQL standard CASE statement.
-- 
select 'cbbrowne' || '@' || 'ntlug.org';
http://www.ntlug.org/~cbbrowne/linuxxian.html
"How should I know if it  works?  That's what beta testers are for.  I
only  coded  it."   (Attributed  to  Linus Torvalds,  somewhere  in  a
posting)


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

Предыдущее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: plpgsql vs. SQL in stored procedures
Следующее
От: Stephen Quinney
Дата:
Сообщение: Timestamp manipulation