查看表 :
show tables 查看当前数据库中的所有表
desc 查看数据表的结构
写法:
查看当前数据库中的所有表
show tables;
显示当前数据表的结构
desc 表名;
查看创建的sql语句
show create table 表名;
删除表永久删除
drop table 表名;
drop create table if exists 表名;
查看表 :
show tables 查看当前数据库中的所有表
desc 查看数据表的结构
写法:
查看当前数据库中的所有表
show tables;
显示当前数据表的结构
desc 表名;
查看创建的sql语句
show create table 表名;
删除表永久删除
drop table 表名;
drop create table if exists 表名;