Re: Stored procedure - change columns in a table that is

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Stored procedure - change columns in a table that is
Дата
Msg-id 3E6A885E.9020101@joeconway.com
обсуждение исходный текст
Ответ на Re: Stored procedure - change columns in a table that is being updated / inserted on?  (bryan@flyingiranch.com)
Ответы Re: Stored procedure - change columns in a table that is  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-novice
bryan@flyingiranch.com wrote:
> Next question: One of the reasons a function is attractive to me in this
> situation is that I also have some conditionals to handle. For instance,
> Base Metabolic Rate is different whether you are male or female (gender
> is a boolean value in my table). Can I use IF/THEN syntax in a view
> definition?

Take a look at the CASE conditional expression:
http://developer.postgresql.org/docs/postgres/functions-conditional.html


HTH,

Joe


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

Предыдущее
От: "Rod Kreisler"
Дата:
Сообщение: String manipulation in plpgsql
Следующее
От: Joe Conway
Дата:
Сообщение: Re: String manipulation in plpgsql