查询:
show tables ; //查询所有表名称
desc 表名称 ; //查询表结构
show create table 表名称; //查看创建表语句
create table 表名 ( 字段名1 字段类型1,字段名2 字段类型2) ; //创建表结构
示列:
1. show tables;
use 数据库名;
show tables ;
show tables ; //查询所有表名称
desc 表名称 ; //查询表结构
show create table 表名称; //查看创建表语句
create table 表名 ( 字段名1 字段类型1,字段名2 字段类型2) ; //创建表结构
use 数据库名;
show tables ;