PostgreSQL

Скачать в pdf «PostgreSQL»


Notes


DROP TRIGGER is a Postgres language extension.


Refer to CREATE TRIGGER for information on how to create triggers.


Usage


Destroy the if_dist_exists trigger on table films:


DROP TRIGGER if dist exists ON films;


Compatibility


SQL92


There is no DROP TRIGGER statement in SQL92.

d.43 drop type


Name


DROP TYPE — Removes a user-defined type from the system catalogs DROP TYPE type-name


Inputs


typename The name of an existing type.


Outputs


DROP The message returned if the command is successful.


ERROR: RemoveType: type ’typename’ does not exist This message occurs if the specified type is not found.


Description


DROP TYPE will remove a user type from the system catalogs.


Only the owner of a type can remove it.


Notes


DROP TYPE statement is a Postgres language extension.


Refer to CREATE TYPE for information on how to create types.


It is the user’s responsibility to remove any operators, functions, aggregates, access methods, subtypes, and classes that use a deleted type.


If a built-in type is removed, the behavior of the backend is unpredictable.


Usage


To remove the box type: drop type box;


Compatibility


SQL3


drop type is a SQL3 statement.

D.44 DROP USER


Name


DROP USER — Removes a user DROP USER name


Inputs


name The name of an existing user.


Outputs


DROP USER The message returned if the user is successfully deleted.

Скачать в pdf «PostgreSQL»