DROP TABLE命令用于刪除表。 發(fā)出DROP TABLE時,將刪除表中的數(shù)據(jù),并刪除表。
DROP TABLE <tablename>;
以下示例刪除表'employee'。
DROP TABLE employee;
如果在此之后運行SHOW TABLE命令,您將收到一條錯誤消息,指出該表不存在。
SHOW TABLE employee; *** Failure 3807 Object 'employee' does not exist. Statement# 1, Info = 0 *** Total elapsed time was 1 second.
更多建議: