|
|
CREATE SCHEMA
Usage
Embedded/Interactive/ODBC/JDBC.
Description
A new schema is created with the name specified in
schema-name-clause. Ifschema-nameis specified, the schema is created with that name, otherwise the name of the schema will be the same asident-name.If
ident-nameis specified, the schema and all the other objects created by theCREATE SCHEMAstatement are created with the named ident as the effective current ident.A
schema-elementis aCREATEorGRANTstatement that is specified using the normal syntax for such a statement and which is executed by theCREATE SCHEMAstatement in the normal way.Language Elements
create-table-statement, see CREATE TABLE.
create-view-statement, see CREATE VIEW.
create-index-statement, see CREATE INDEX.
create-domain-statement, see CREATE DOMAIN.
create-sequence-statement, see CREATE SEQUENCE.
create-synonym-statement, see CREATE SYNONYM.
grant-statement, see GRANT ACCESS PRIVILEGE or GRANT OBJECT PRIVILEGE.Restrictions
The schema name must not be the same as that of a schema which already exists in the database.
CREATE SCHEMArequires that the current ident hasSCHEMAorIDENTprivilege.The value for
ident-nameis currently restricted to be the name of the current ident.A
grant-statementis restricted toGRANT ACCESS PRIVILEGE,GRANT USAGE ON DOMAINorGRANT USAGE ON SEQUENCE(i.e. it is only possible to grant privileges on private database objects).If a
schema-elementcontains aCREATEstatement where the name of the object to be created is specified in its fully qualified form (i.e.schema_name.object_name), theschema-namecomponent must be the same as the name of the schema being created by theCREATE SCHEMAstatement.Notes
If a
schema-elementcontains aCREATEstatement where the name of the object to be created is specified in an unqualified form, it will be created in the schema created by theCREATE SCHEMAstatement (and not the schema with the same name as the current ident as is usual forCREATEstatements).It is possible for one
schema-elementto reference the objects created by otherschema-element's regardless of the order of creation of the objects. All object references are verified at the conclusion of theCREATE SCHEMAstatement when all theschema-element's have been executed and all objects have been created.Example
CREATE SCHEMA mimer_store_music;For more information, see the Mimer SQL User's Manual, Creating Idents and Schemas.
Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|