add mention of DISTINCT ON attrN
authorBruce Momjian
Sun, 12 Jul 1998 04:49:47 +0000 (04:49 +0000)
committerBruce Momjian
Sun, 12 Jul 1998 04:49:47 +0000 (04:49 +0000)
src/bin/psql/psqlHelp.h
src/man/select.l

index 91786543e4b4f4e0e7f758c2059e0090baa83e79..0383b01a42066164bafc518cfab1dd1cede36997 100644 (file)
@@ -5,7 +5,7 @@
  *
  * Copyright (c) 1994, Regents of the University of California
  *
- * $Id: psqlHelp.h,v 1.44 1998/06/16 07:29:39 momjian Exp $
+ * $Id: psqlHelp.h,v 1.45 1998/07/12 04:49:47 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -150,7 +150,7 @@ static struct _helpStruct QL_HELP[] = {
    {"create view",
        "create a view",
    "create view  as\n\
-\tselect\n\
+\tselect [distinct [on attrN]]\n\
 \t[as ][,... [as ]]\n\
 \t[from ]\n\
 \t[where ]\n\
@@ -158,7 +158,7 @@ static struct _helpStruct QL_HELP[] = {
    {"declare",
        "set up a cursor",
    "declare  [binary] cursor for\n\
-\tselect [distinct]\n\
+\tselect [distinct [on attrN]]\n\
 \t [as ],... [as ]\n\
 \t[from ]\n\
 \t[where ]\n\
@@ -239,7 +239,7 @@ static struct _helpStruct QL_HELP[] = {
        "insert tuples",
    "insert into  [(...)]\n\
 \tvalues (...) |\n\
-\tselect [distinct]\n\
+\tselect [distinct [on attrN]]\n\
 \t,...\n\
 \t[from ]\n\
 \t[where ]\n\
@@ -278,7 +278,7 @@ static struct _helpStruct QL_HELP[] = {
    "rollback [transaction|work]"},
    {"select",
        "retrieve tuples",
-   "select [distinct on  [as ], ...  [as ]\n\
+   "select [distinct [on ] [as ], ...  [as ]\n\
 \t[into [table] ]\n\
 \t[from ]\n\
 \t[where ]\n\
index 5ffa34922b8bd8698d9a5044e15135229c32c96e..64c89e7f7fea9c7144c9c4e20f24ebd652054722 100644 (file)
@@ -1,12 +1,12 @@
 .\" This is -*-nroff-*-
 .\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/src/man/Attic/select.l,v 1.9 1998/06/24 13:21:29 momjian Exp $
+.\" $Header: /cvsroot/pgsql/src/man/Attic/select.l,v 1.10 1998/07/12 04:49:47 momjian Exp $
 .TH SELECT SQL 11/05/95 PostgreSQL PostgreSQL
 .SH NAME
 select - retrieve instances from a class
 .SH SYNOPSIS
 .nf
-\fBselect\fR [distinct]
+\fBselect\fR [distinct [on attr_name]]
     expression1 [\fBas\fR attr_name-1]
     {, expression-1 [\fBas\fR attr_name-i]}
     [\fBinto\fR [\fBtable\fR] classname]