Create Schema Statement; Syntax Description Of Create Schema; Considerations For Create Schema; Example Of Create Schema - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

CREATE SCHEMA Statement

"Syntax Description of CREATE SCHEMA"

"Considerations for CREATE SCHEMA"

"Example of CREATE SCHEMA"

The CREATE SCHEMA statement creates a Neoview SQL schema. See
CREATE SCHEMA schema-clause [schema-element
[, schema-element] ...]]
schema-clause is:
schema
schema-element is:
table-definition
| view-definition
| grant-statement
| index-definition
Syntax Description of CREATE SCHEMA
schema
is a name for the new schema. A simple schema name is an SQL identifier.
schema-element
specifies the objects to be defined in the schema. The element in the statement must be in the
same schema as the schema you are creating. Schema elements must appear in sequence—a
schema element that depends on another schema element must be listed after that schema
element.
table-definition
is a CREATE TABLE statement.
view-definition
is a CREATE VIEW statement.
grant-statement
is a GRANT statement.
index-definition
is a CREATE INDEX statement. index-definition cannot be the only
schema-element.
Considerations for CREATE SCHEMA
Reserved Schema Names
Schema names that begin with HP_ are reserved for use by HP.
Schema names that begin with DEFINITION_SCHEMA_VERSION_ and the schema named
PUBLIC_ACCESS_SCHEMA are reserved for SQL. You cannot create schemas with these names.
The schema PUBLIC_ACCESS_SCHEMA is created during system initialization and cannot be
dropped.
These names are not reserved (you can create schema with these names): SYSTEM_SCHEMA,
SYSTEM_DEFAULTS_SCHEMA, MXCS_SCHEMA.
Example of CREATE SCHEMA
This example creates a schema:
CREATE SCHEMA myschema;
70
SQL Statements
"Schemas" (page
304).

Advertisement

Table of Contents
loading

Table of Contents