(数据库 |
您所在的位置:网站首页 › 怎么查看mysql表的数据类型 › (数据库 |
1.查看表:(show tables;) show tables; 通过show命令,确定当前只创建了一个表student。 2.查看表的创建过程:(show create table table_name;) show create table student; 3.查看数据表的结构,命令比较简单:(desc table_name;) desc student; 从显示结果可以看出,字段、数据类型与属性等都很清楚。 另一种方式:(show fields from table_name;) show fields from student; 还有一种方式:(describe table_name;) describe student; 以上3种对表(student)的查看,显示结果一样。 |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |