5
5
*
6
6
* Copyright (c) 1994, Regents of the University of California
7
7
*
8
- * $Id: psqlHelp.h,v 1.4 1996/10/03 04:20:41 momjian Exp $
8
+ * $Id: psqlHelp.h,v 1.5 1996/10/03 15:46:31 momjian Exp $
9
9
*
10
10
*-------------------------------------------------------------------------
11
11
*/
@@ -25,7 +25,7 @@ static struct _helpStruct QL_HELP[] = {
25
25
"abort [transaction];" },
26
26
{ "alter table" ,
27
27
"add/rename attributes, rename tables" ,
28
- "alter table <relname > [*] add column <attr> <type>;\n\talter table <relname > [*] rename [column] <attr1> to <attr2>;\n\talter table <relname1 > rename to <relname2 >" },
28
+ "alter table <class_name > [*] add column <attr> <type>;\n\talter table <class_name > [*] rename [column] <attr1> to <attr2>;\n\talter table <class_name1 > rename to <class_name2 >" },
29
29
{ "begin" ,
30
30
"begin a new transaction" ,
31
31
"begin [transaction|work];" },
@@ -39,8 +39,8 @@ static struct _helpStruct QL_HELP[] = {
39
39
"create a clustered index (from an existing index)" ,
40
40
"cluster <index_name> on <relation_name>" },
41
41
{ "close" ,
42
- "close an existing cursor (portal )" ,
43
- "close <portalname >;" },
42
+ "close an existing cursor (cursor )" ,
43
+ "close <cursorname >;" },
44
44
{ "commit" ,
45
45
"commit a transaction" ,
46
46
"commit [work]" },
@@ -49,7 +49,7 @@ static struct _helpStruct QL_HELP[] = {
49
49
"commit [work]" },
50
50
{ "copy" ,
51
51
"copy data to and from a table" ,
52
- "copy [binary] <relname > [with oids]\n\t{to|from} {<filename>|stdin|stdout} [using delimiters <delim>];" },
52
+ "copy [binary] <class_name > [with oids]\n\t{to|from} {<filename>|stdin|stdout} [using delimiters <delim>];" },
53
53
{ "create" ,
54
54
"Please more be specific:" ,
55
55
"\tcreate aggregate\n\tcreate database\n\tcreate function\n\tcreate index\n\tcreate operator\n\tcreate rule\n\tcreate table\n\tcreate type\n\tcreate view" },
@@ -64,7 +64,7 @@ static struct _helpStruct QL_HELP[] = {
64
64
"create function <function_name> ([<type1>,...<typeN>]) returns <return_type>\n\tas '<object_filename>'|'<sql-queries>'\n\tlanguage 'c'|'sql'|'internal';" },
65
65
{ "create index" ,
66
66
"construct an index" ,
67
- "create index <indexname> on <relname > [using <access_method>] (<attr1>|<funcname>(<attr1>,...) [<type_class1>]);" },
67
+ "create index <indexname> on <class_name > [using <access_method>] (<attr1>|<funcname>(<attr1>,...) [<type_class1>]);" },
68
68
{ "create operator" ,
69
69
"create a user-defined operator" ,
70
70
"create operator <operator_name> (\n\t[leftarg = <type1>][,rightarg = <type2>]\n\t,procedure = <func_name>,\n\t[,commutator = <com_op>][,negator = <neg_op>]\n\t[,restrict = <res_proc>][,hashes]\n\t[,join = <join_proc>][,sort = <sort_op1>...<sort_opN>]);" },
@@ -73,19 +73,19 @@ static struct _helpStruct QL_HELP[] = {
73
73
"create rule <rule_name> as on\n\t[select|update|delete|insert]\n\tto <object> [where <qual>]\n\tdo [instead] [<action>|nothing| [<actions>]];" },
74
74
{ "create table" ,
75
75
"create a new table" ,
76
- "create table <relname > ( <attr1> <type1>,... <attrN> <typeN>)\n\t[inherits (<relname1 >,...<relnameN >\n\tarchive=<archive_mode>\n\tstore=<smgr_name>\n\tarch_store=<smgr_name>];" },
76
+ "create table <class_name > ( <attr1> <type1>,... <attrN> <typeN>)\n\t[inherits (<class_name1 >,...<class_nameN >\n\tarchive=<archive_mode>\n\tstore=<smgr_name>\n\tarch_store=<smgr_name>];" },
77
77
{ "create type" ,
78
78
"create a new user-defined base data type" ,
79
79
"create type <typename> (\n\tinternallength = (<number> | variable),\n\t[externallength = (<number>|variable),]\n\tinput=<input_function>, output = <output_function>\n\t[,element = <typename>][,delimiter=<character>][,default=\'<string>\']\n\t[,send = <send_function>][,receive = <receive_function>][,passedbyvalue]);" },
80
80
{ "create view" ,
81
81
"create a view" ,
82
82
"create view <view_name> as select <expr1>[as <attr1>][,... <exprN>[as <attrN>]] [from <from_list>] [where <qual>];" },
83
83
{ "declare" ,
84
- "set up a cursor (portal) " ,
85
- "declare <portalname > [binary] cursor for\n\tselect [distinct]\n\t<expr1> [as <attr1>],...<exprN> [as <attrN>]\n\t[from <from_list>] [where <qual>]\n\t[order by <attr1> [using <op1>],... <attrN> [using <opN>]];" },
84
+ "set up a cursor" ,
85
+ "declare <cursorname > [binary] cursor for\n\tselect [distinct]\n\t<expr1> [as <attr1>],...<exprN> [as <attrN>]\n\t[from <from_list>] [where <qual>]\n\t[order by <attr1> [using <op1>],... <attrN> [using <opN>]];" },
86
86
{ "delete" ,
87
87
"delete tuples" ,
88
- "delete from <relname > [where <qual>];" },
88
+ "delete from <class_name > [where <qual>];" },
89
89
{ "drop" ,
90
90
"Please more be specific:" ,
91
91
"\tdrop aggregate\n\tdrop database\n\tdrop function\n\tdrop index\n\tdrop operator\n\tdrop rule\n\tdrop table\n\tdrop type\n\tdrop view" },
@@ -109,7 +109,7 @@ static struct _helpStruct QL_HELP[] = {
109
109
"drop rule <rulename>;" },
110
110
{ "drop table" ,
111
111
"remove a table" ,
112
- "drop table <relname >[,...<relnameN ];" },
112
+ "drop table <class_name >[,...<class_nameN ];" },
113
113
{ "drop type" ,
114
114
"remove a user-defined base type" ,
115
115
"drop type <typename>;" },
@@ -129,38 +129,38 @@ static struct _helpStruct QL_HELP[] = {
129
129
"extend a partial index" ,
130
130
"extend index <indexname> [where <qual>];" },
131
131
{ "fetch" ,
132
- "retrieve tuples from a cursor (portal) " ,
133
- "fetch [forward|backward] [<number>|all] [in <portalname >];" },
132
+ "retrieve tuples from a cursor" ,
133
+ "fetch [forward|backward] [<number>|all] [in <cursorname >];" },
134
134
{ "grant" ,
135
135
"grant access control to a user or group" ,
136
136
"grant <privilege[,privilege,...]> on <rel1>[,...<reln>] to \n[public | group <group> | <username>]\n\t privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}" },
137
137
{ "insert" ,
138
138
"insert tuples" ,
139
- "insert into <relname > [(<attr1>...<attrN>)]\n\t[values (<expr1>...<exprN>); |\n\tselect <expr1>,...<exprN> [from <from_clause>] [where <qual>];" },
139
+ "insert into <class_name > [(<attr1>...<attrN>)]\n\t[values (<expr1>...<exprN>); |\n\tselect <expr1>,...<exprN> [from <from_clause>] [where <qual>];" },
140
140
{ "listen" ,
141
141
"listen for notification on a relation" ,
142
- "listen <relname >" },
142
+ "listen <class_name >" },
143
143
{ "load" ,
144
144
"dynamically load a module" ,
145
145
"load <filename>;" },
146
146
{ "notify" ,
147
147
"signal all frontends and backends listening on a relation" ,
148
- "notify <relname >" },
148
+ "notify <class_name >" },
149
149
{ "purge" ,
150
150
"purge historical data" ,
151
- "purge <relname > [before <abstime>] [after <reltime>];" },
151
+ "purge <class_name > [before <abstime>] [after <reltime>];" },
152
152
{ "revoke" ,
153
153
"revoke access control from a user or group" ,
154
154
"revoke <privilege[,privilege,...]> on <rel1>[,...<reln>] from \n[public | group <group> | <username>]\n\t privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}" },
155
155
{ "rollback" ,
156
156
"abort a transaction" ,
157
- "rollback [work]" },
157
+ "rollback [transaction| work]" },
158
158
{ "select" ,
159
159
"retrieve tuples" ,
160
- "select [distinct on <attr>] <expr1> [as <attr1>], ... <exprN> [as <attrN>]\n\t[into table <relname >] [from <from_list>]\n\t[where <qual>]\n\t[order by <attr1>\n\t\t[using <op1>],..<attrN> [[using <opN>] | ASC | DESC]];" },
160
+ "select [distinct on <attr>] <expr1> [as <attr1>], ... <exprN> [as <attrN>]\n\t[into table <class_name >] [from <from_list>]\n\t[where <qual>]\n\t[order by <attr1>\n\t\t[using <op1>],..<attrN> [[using <opN>] | ASC | DESC]];" },
161
161
{ "update" ,
162
162
"update tuples" ,
163
- "update <relname > set <attr1>=<expr1>,...<attrN>=<exprN> [from <from_clause>] [where <qual>];" },
163
+ "update <class_name > set <attr1>=<expr1>,...<attrN>=<exprN> [from <from_clause>] [where <qual>];" },
164
164
{ "vacuum" ,
165
165
"vacuum the database, i.e. cleans out deleted records, updates statistics" ,
166
166
"vacuum [table];" },
0 commit comments