| От | Christian Kratzer |
|---|---|
| Тема | Re: (non)zero function |
| Дата | |
| Msg-id | 20050328104059.A93661@vesihiisi.cksoft.de обсуждение |
| Ответ на | (non)zero function (Enrico Weigelt <weigelt@metux.de>) |
| Список | pgsql-sql |
Hi, On Sun, 27 Mar 2005, Enrico Weigelt wrote: > > Hi folks, > > > is there an function returning true if the argument is null or > zero (just to make some queries more concise). Of course its > trivial to implement as SQL function, but if postgresql already > provides such a function, I would prefer using it. Lookup the documentation on COALESCE() http://www.postgresql.org/docs/current/static/functions-conditional.html 9.13.2. COALESCE Greetings Christian -- Christian Kratzer ck@cksoft.de CK Software GmbH http://www.cksoft.de/ Phone: +49 7452 889 135 Fax: +49 7452 889 136
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера