1.删除表:
drop table table_name;
2.查询表字段:
select COLUMN_NAME from information_schema.COLUMNS where TABLE_NAME='table_name';
3.切换数据库:
use database_name
4.查看当前数据库所有表
show tables;
drop table table_name;
select COLUMN_NAME from information_schema.COLUMNS where TABLE_NAME='table_name';
use database_name
show tables;