|
5 | 5 | *
|
6 | 6 | * Copyright (c) 1994, Regents of the University of California
|
7 | 7 | *
|
8 |
| - * $Id: psqlHelp.h,v 1.44 1998/06/16 07:29:39 momjian Exp $ |
| 8 | + * $Id: psqlHelp.h,v 1.45 1998/07/12 04:49:47 momjian Exp $ |
9 | 9 | *
|
10 | 10 | *-------------------------------------------------------------------------
|
11 | 11 | */
|
@@ -150,15 +150,15 @@ static struct _helpStruct QL_HELP[] = {
|
150 | 150 | {"create view",
|
151 | 151 | "create a view",
|
152 | 152 | "create view <view_name> as\n\
|
153 |
| -\tselect\n\ |
| 153 | +\tselect [distinct [on attrN]]\n\ |
154 | 154 | \t<expr1>[as <attr1>][,... <exprN>[as <attrN>]]\n\
|
155 | 155 | \t[from <from_list>]\n\
|
156 | 156 | \t[where <qual>]\n\
|
157 | 157 | \t[group by <group_list>];"},
|
158 | 158 | {"declare",
|
159 | 159 | "set up a cursor",
|
160 | 160 | "declare <cursorname> [binary] cursor for\n\
|
161 |
| -\tselect [distinct]\n\ |
| 161 | +\tselect [distinct [on attrN]]\n\ |
162 | 162 | \t<expr1> [as <attr1>],...<exprN> [as <attrN>]\n\
|
163 | 163 | \t[from <from_list>]\n\
|
164 | 164 | \t[where <qual>]\n\
|
@@ -239,7 +239,7 @@ static struct _helpStruct QL_HELP[] = {
|
239 | 239 | "insert tuples",
|
240 | 240 | "insert into <class_name> [(<attr1>...<attrN>)]\n\
|
241 | 241 | \tvalues (<expr1>...<exprN>) |\n\
|
242 |
| -\tselect [distinct]\n\ |
| 242 | +\tselect [distinct [on attrN]]\n\ |
243 | 243 | \t<expr1>,...<exprN>\n\
|
244 | 244 | \t[from <from_clause>]\n\
|
245 | 245 | \t[where <qual>]\n\
|
@@ -278,7 +278,7 @@ static struct _helpStruct QL_HELP[] = {
|
278 | 278 | "rollback [transaction|work]"},
|
279 | 279 | {"select",
|
280 | 280 | "retrieve tuples",
|
281 |
| - "select [distinct on <attr>] <expr1> [as <attr1>], ... <exprN> [as <attrN>]\n\ |
| 281 | + "select [distinct [on <attrN>]] <expr1> [as <attr1>], ... <exprN> [as <attrN>]\n\ |
282 | 282 | \t[into [table] <class_name>]\n\
|
283 | 283 | \t[from <from_list>]\n\
|
284 | 284 | \t[where <qual>]\n\
|
|
0 commit comments