![]() |
ALLBASE/SQL Reference Manual
> Chapter 10 SQL Statements A - DDROP TABLE |
|||||||||||||||||||||||
|
ScopeISQL or Application Programs SQL SyntaxDROP TABLE [Owner.]Tablename Parameters
Description
AuthorizationYou can issue this statement if you have OWNER authority for the table or if you have DBA authority. ExampleThis table is private by default. CREATE TABLE VendorPerf (OrderNumber INTEGER NOT NULL, ActualDelivDay SMALLINT, ActualDelivMonth SMALLINT, ActualDelivYear SMALLINT, ActualDelivQty SMALLINT Remarks VARCHAR(60) ) IN Miscellaneous CREATE UNIQUE INDEX VendorPerfIndex ON VendorPerf (OrderNumber) CREATE VIEW VendorPerfView (OrderNumber, ActualDelivQty, Remarks) AS SELECT OrderNumber, ActualDelivQty, Remarks FROM VendorPerfOnly the table creator and members of authorization group Warehse can update table VendorPerf. GRANT UPDATE ON VendorPerf TO WarehseThe table, the index, and the view are all deleted; and the grant is revoked. DROP TABLE VendorPerf
|