1.查看数据库版本
登陆状态:select version ();
mysql基础命令
未登录状态:mysql --version
2.查询所有数据库:show databases;
mysql基础命令
3.使用某个数据库:use 库名;
mysql基础命令
4.查询当前库中所有的表:show tables;
mysql基础命令

5.查询其他库的所有表:show tables from 库名;
mysql基础命令
6.查看表的创建语句:show create table table_name;

相关文章:

  • 2022-12-23
  • 2021-05-30
  • 2021-04-18
  • 2021-12-04
  • 2021-06-06
猜你喜欢
  • 2021-08-21
  • 2021-05-27
  • 2021-09-11
  • 2021-11-28
  • 2021-09-06
相关资源
相似解决方案