Re: IFNULL -> COALESCE
| От | Lee Kindness |
|---|---|
| Тема | Re: IFNULL -> COALESCE |
| Дата | |
| Msg-id | 15460.2063.311288.503373@kelvin.csl.co.uk обсуждение исходный текст |
| Ответ на | Re: IFNULL -> COALESCE (Christopher Kings-Lynne <chriskl@familyhealth.com.au>) |
| Ответы |
Re: IFNULL -> COALESCE
Re: IFNULL -> COALESCE |
| Список | pgsql-hackers |
Christopher Kings-Lynne writes:> lkindness@csl.co.uk writes:> > SELECT COALESCE(MAX(id), 0) + 1 from test;> > can be replacedby the following PostgreSQL query:> > SELECT COALESCE(MAX(id), 0) + 1 from test;> Ummm...did you make a mistakehere? Those statements are> identical... Okay, lets try that again... SELECT IFNULL(MAX(id), 0) + 1 from test; can be replaced by the following PostgreSQL query: SELECT COALESCE(MAX(id), 0) + 1 from test; Thanks, Lee.
В списке pgsql-hackers по дате отправления: