MySQL怎么删除表中数据

使用命令:

delete from 表名;
或者:
truncate table 表名;

这只会删除表内数据,不会删除表。


下面代码是删除表的( 慎用 ):

drop table 表名;

你可能感兴趣的:(数据库)