drop database if exists 数据库名;如果有指定数据库名,则删除
drop table if exists 表名;如果有指定表名,则删除
drop database 数据库名;删除数据库
truncate tablename;快速删除表中数据,不可恢复;id自增长从开始自增长
delete from 表名;删除表中所有数据,id自增长沿着删除前继续
alter table 表名 drop 字段;删除列,就是删除指定字段
drop table tablename;删除表
alter table 表名 modify id int unsigned;删除自增长
alter table 表名 drop primary key;删除主键
alter table 表名 alter 字段名 drop default;删除指定表中的指定字段的默认值
联系客服