Attached is a small patch for the Reference Manual which adds
authorBruce Momjian
Wed, 31 Oct 2001 04:50:52 +0000 (04:50 +0000)
committerBruce Momjian
Wed, 31 Oct 2001 04:50:52 +0000 (04:50 +0000)
information about nulls and sort order.

This is based on information obtained from Peter Eisentraut and
Tom Lane on pgsql-hackers.

Please check my English and Docbook markup, as both are a second
language to me.

Rene Pijlman

doc/src/sgml/ref/select.sgml

index 7765af05d14ccdd8551a4dde410bcddb37844f83..3d45eff040e61152156486273698ee6947d9cf9e 100644 (file)
@@ -1,5 +1,5 @@
 
 
@@ -601,6 +601,13 @@ SELECT name FROM distributors ORDER BY code;
     specific ordering operator name may be specified.  ASC is equivalent
     to USING < and DESC is equivalent to USING >.
    
+
+   
+   The null value sorts higher than any other value in a domain. In other
+   words, with ascending sort order nulls sort at the end and with
+   descending sort order nulls sort at the beginning.
+   
+