MYSQL Pocket reference

Page 68

DROP PROCEDURE DROP PROCEDURE [IF EXISTS] name

Removes the specified procedure from the database. You must have ALTER ROUTINE permissions for the procedure in order to execute this call.

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

Will erase an entire table permanently. In the current implementation, MySQL simply deletes the files associated with the table. As of 3.22, you may specify IF EXISTS to make MySQL not return an error if you attempt to remove a table that does not exist. The RESTRICT and CASCADE keywords do nothing; they exist solely for ANSI compatibility. You must have DELETE privileges on the table to use this statement.

DROP TABLESPACE DROP TABLESPACE tablespace ENGINE = engine

Drops the specified tablespace. The tablespace must not include any data files. You should therefore make sure you remove all data files first by using the ALTER TABLESPACE command.

DROP TRIGGER DROP TRIGGER [IF EXISTS] trigger

Drops the specified trigger from MySQL. When upgrading from MySQL 5.0.10 and earlier to any later version, you must first drop your triggers before the upgrade and then re-add them.

DROP USER DROP USER user

Drops a user from MySQL along with his permissions.

SQL

|

61


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.