SQL DROP TABLE 语句
SQL DROP TABLE 语句
The DROP TABLE
statement is used to drop an existing table in a database.
语法
DROP TABLE table_name;
注意: 删除表之前请谨慎操作。删除表将导致存储在表中的所有信息丢失!
SQL DROP TABLE 示例
以下 SQL 语句删除现有表 "Shippers"
示例
DROP TABLE Shippers;
SQL TRUNCATE TABLE
The TRUNCATE TABLE
statement is used to delete the data inside a table, but not the table itself.
语法
TRUNCATE TABLE table_name;