(1)查看有哪些数据库:show databases;

mysql数据库(8):获得数据库和表的信息_数据库

 

 

 (2)选择数据库: use chuan

mysql数据库(8):获得数据库和表的信息_html_02

 

 

 (3)查看该数据库中有哪些表:show tables;

mysql数据库(8):获得数据库和表的信息_数据库_03

 

 

 (4)查看表结构:describe pet;

mysql数据库(8):获得数据库和表的信息_表结构_04

 

作者:川川菜鸟

学习交流群:970353786