Contents Aster SQL and Function Reference


Add to my manuals
228 Pages

advertisement

Contents Aster SQL and Function Reference | Manualzz

Aster Data proprietary and confidential DROP TABLE

However, it is not necessary to remove role memberships involving the role; DROP ROLE automatically revokes any memberships of the target role in other roles, and of other users and roles in the target role. The other users and roles are not dropped nor otherwise affected.

Compatibility

The SQL standard defines DROP ROLE , but it allows only one role to be dropped at a time, and it specifies different privilege requirements than Aster Database uses.

See Also

“CREATE ROLE” on page V-31 and

“ALTER ROLE” on page V-7 .

DROP SCHEMA

Synopsis

DROP SCHEMA [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

Description

DROP SCHEMA removes schemas from the database.

A schema can only be dropped by its owner. Note that the owner can drop the schema (and thereby all contained objects) even if he does not own some of the objects within the schema.

Parameters

IF EXISTS Do not throw an error if the schema does not exist. A notice is issued in this case.

name The name of a schema.

CASCADE Automatically drop objects (tables, functions, etc.) that are contained in the schema.

RESTRICT Refuse to drop the schema if it contains any objects. This is the default.

See Also

“CREATE SCHEMA” on page V-32

and “ALTER SCHEMA” on page V-8

.

DROP TABLE

DROP TABLE -- remove a table

Synopsis

DROP TABLE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ];

December 14, 2011 SQL Commands V--53

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Download PDF

advertisement

Table of contents