projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7e12db
)
Fix (mis)information about NULLIF() SQL function.
author
Thomas G. Lockhart
Wed, 29 Sep 1999 05:20:20 +0000
(
05:20
+0000)
committer
Thomas G. Lockhart
Wed, 29 Sep 1999 05:20:20 +0000
(
05:20
+0000)
Thanks to Tom Lane for pointing it out.
doc/src/sgml/func.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/func.sgml
b/doc/src/sgml/func.sgml
index 492859f56b6243af532fb328aa9b85403f53cbfa..2bfec9272e5aa8411d69e67d89df92549afb24ff 100644
(file)
--- a/
doc/src/sgml/func.sgml
+++ b/
doc/src/sgml/func.sgml
@@
-45,10
+45,10
@@
class="parameter">c2 + 5, 0)
-
IFNULL(
input
,
non-NULL substitut
e)
-
non-
NULL
-
return
second argument if first is NULL
-
IFNULL
(
c1
, 'N/A')
+
NULLIF(
input
,
valu
e)
+
input
or
NULL
+
return
NULL if
input
=
value
+
NULLIF
(
c1
, 'N/A')
CASE WHEN
expr
THEN
expr
[...] ELSE
expr
END