liuming8080

一、查看MySQL中的所有数据库

  show databases;

二、查看当前正在使用的数据库

  select database();

三、查看当前数据库中的所有表

  show tables;

四、查看表结构

  describe employees;

  其中employees为表名

五、显示创建表语句

  show create table 表名;

六、查看表的索引信息

  select index from employees;

  其中employees为表名

七、查看当前连接最后一次插入到表中的标识(已插入)

  select last_insert_id();

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2021-10-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-21
  • 2021-11-27
  • 2021-12-15
  • 2021-11-06
相关资源
相似解决方案