SEC3 - MySQL常见命令

1.查看当前所有的数据库

show databases;

2. 打开指定的库名

use 库名称;

3.查看当前库中所有的表

show tables;

4. 查看其他库的所有表

show tables from 库名称;

5. 创建表

create table 表名称(
      列名 列类型,
      列名 列类型,
      。。。
                             );

  

 6. 查看表结构

desc 表名;

  

posted @ 2019-09-12 11:47  lililili——  阅读(201)  评论(0)    收藏  举报