*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: psqlHelp.h,v 1.4 1996/10/03 04:20:41 momjian Exp $
+ * $Id: psqlHelp.h,v 1.5 1996/10/03 15:46:31 momjian Exp $
*
*-------------------------------------------------------------------------
*/
"abort [transaction];"},
{ "alter table",
"add/rename attributes, rename tables",
- "alter table <
relname> [*] add column ;\n\talter table [*] rename [column] to ;\n\talter table rename to name2>"},
+ "alter table <
class_name> [*] add column ;\n\talter table [*] rename [column] to ;\n\talter table rename to name2>"},
{ "begin",
"begin a new transaction",
"begin [transaction|work];"},
"create a clustered index (from an existing index)",
"cluster on "},
{ "close",
- "close an existing cursor (portal)",
- "close <portalname>;"},
+ "close an existing cursor (cursor)",
+ "close <cursorname>;"},
{ "commit",
"commit a transaction",
"commit [work]"},
"commit [work]"},
{ "copy",
"copy data to and from a table",
- "copy [binary] <relname> [with oids]\n\t{to|from} {|stdin|stdout} [using delimiters ];"},
+ "copy [binary] <class_name> [with oids]\n\t{to|from} {|stdin|stdout} [using delimiters ];"},
{ "create",
"Please more be specific:",
"\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"},
"create function ([,...]) returns \n\tas ''|''\n\tlanguage 'c'|'sql'|'internal';"},
{ "create index",
"construct an index",
- "create index
on <relname> [using ] (|(,...) []);"},
+ "create index
on <class_name> [using ] (|(,...) []);"},
{ "create operator",
"create a user-defined operator",
"create operator (\n\t[leftarg = ][,rightarg = ]\n\t,procedure = ,\n\t[,commutator = ][,negator = ]\n\t[,restrict = ][,hashes]\n\t[,join = ][,sort = ...]);"},
"create rule
as on\n\t[select|update|delete|insert]\n\tto
{ "create table",
"create a new table",
- "create table <
relname> ( ,... )\n\t[inherits (,...nameN>\n\tarchive=\n\tstore=\n\tarch_store=];"},
+ "create table <
class_name> ( ,... )\n\t[inherits (,...nameN>\n\tarchive=\n\tstore=\n\tarch_store=];"},
{ "create type",
"create a new user-defined base data type",
"create type (\n\tinternallength = ( | variable),\n\t[externallength = (|variable),]\n\tinput=, output = \n\t[,element = ][,delimiter=][,default=\'\']\n\t[,send = ][,receive = ][,passedbyvalue]);"},
"create a view",
"create view
as select [as ][,... [as ]] [from ] [where ];"},
{ "declare",
- "set up a cursor (portal)",
- "declare <
portalname> [binary] cursor for\n\tselect [distinct]\n\t
[as ],... [as ]\n\t[from ] [where ]\n\t[order by [using ],... [using ]];"},
+ "set up a cursor",
+ "declare <
cursorname> [binary] cursor for\n\tselect [distinct]\n\t
[as ],... [as ]\n\t[from ] [where ]\n\t[order by [using ],... [using ]];"},
{ "delete",
"delete tuples",
- "delete from <relname> [where ];"},
+ "delete from <class_name> [where ];"},
{ "drop",
"Please more be specific:",
"\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"},
"drop rule ;"},
{ "drop table",
"remove a table",
- "drop table <relname>[,...nameN];"},
+ "drop table <class_name>[,...nameN];"},
{ "drop type",
"remove a user-defined base type",
"drop type ;"},
"extend a partial index",
"extend index [where ];"},
{ "fetch",
- "retrieve tuples from a cursor (portal)",
- "fetch [forward|backward] [|all] [in <portalname>];"},
+ "retrieve tuples from a cursor",
+ "fetch [forward|backward] [|all] [in <cursorname>];"},
{ "grant",
"grant access control to a user or group",
"grant
on [,...] to \n[public | group | ]\n\t privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"},
{ "insert",
"insert tuples",
- "insert into <
relname> [(
...)]\n\t[values (...); |\n\tselect ,... [from ] [where ];"},
+ "insert into <
class_name> [(
...)]\n\t[values (...); |\n\tselect ,... [from ] [where ];"},
{ "listen",
"listen for notification on a relation",
- "listen <relname>"},
+ "listen <class_name>"},
{ "load",
"dynamically load a module",
"load ;"},
{ "notify",
"signal all frontends and backends listening on a relation",
- "notify <relname>"},
+ "notify <class_name>"},
{ "purge",
"purge historical data",
- "purge <
relname> [before
] [after ];"},
+ "purge <
class_name> [before
] [after ];"},
{ "revoke",
"revoke access control from a user or group",
"revoke
on [,...] from \n[public | group | ]\n\t privilege is {ALL | SELECT | INSERT | UPDATE | DELETE | RULE}"},
{ "rollback",
"abort a transaction",
- "rollback [work]"},
+ "rollback [transaction|work]"},
{ "select",
"retrieve tuples",
- "select [distinct on
] [as ], ... [as ]\n\t[into table <relname>] [from ]\n\t[where ]\n\t[order by \n\t\t[using ],.. [[using ] | ASC | DESC]];" },
+ "select [distinct on
] [as ], ... [as ]\n\t[into table <class_name>] [from ]\n\t[where ]\n\t[order by \n\t\t[using ],.. [[using ] | ASC | DESC]];" },
{ "update",
"update tuples",
- "update <
relname> set
=,...= [from ] [where ];"},
+ "update <
class_name> set
=,...= [from ] [where ];"},
{ "vacuum",
"vacuum the database, i.e. cleans out deleted records, updates statistics",
"vacuum [table];"},