| От | Guillaume Lelarge |
|---|---|
| Тема | Re: Rules and conditions |
| Дата | |
| Msg-id | 200912090906.12976.guillaume@lelarge.info обсуждение |
| Ответ на | Rules and conditions (George Silva <georger.silva@gmail.com>) |
| Ответы |
Re: Rules and conditions
|
| Список | pgsql-general |
Le mercredi 9 décembre 2009 à 01:52:03, George Silva a écrit : > [...] > I can't seem to understand why a simples if is not working on the > creation of rules. > > I tried both ways (am i missing something?): > Sure. IF does not exist in SQL, and you can only put SQL statements in a rule. Instead, you can call a stored function written in PL/pgsql which supports IF structure. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера