查看数据库mysql指令集

说明:<> 为必须指定该对象

           [ ] 为可选项

          { }为必选项 


查看mysql数据库默认编码

show variables like '%char%';

查看当前数据库编码

show create database <数据库名>;

查看当前数据库下数据表的编码

show create table <表名>;

查看指定数据表的编码

show create table <数据库名.表名>;

查看已建数据库

show databases <数据库名>;

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

show tables;

查看指定数据库下的所有表

show tables in <数据库名>;

查看表的结构

show columns from <表名>;

查看表中的所有记录

select * from <表名>;

原创文章 20 获赞 22 访问量 1万+

猜你喜欢

转载自blog.csdn.net/weixin_44687034/article/details/105228785
今日推荐