desctablenamename;describetablename;showcolumnstablename;showcreatetabletablename;1,2,3展示的是+-------------+-------------+------+-----+---------+----------------+|Field|Type|Null|Key|Default|Extra|+-------------+-------------+------+-----+---------+------..
分类:
数据库 时间:
2016-06-15 00:07:38
阅读次数:
175
1.mysql 查看表结构 2. 索引的种类 ①主键索引 primary key ②外键索引 foreign key ③唯一索引 unique ④常规索引 index ⑤全文索引 fulltext 对全文进行索引 3.索引的创建(create关键字,alter关键字) 常规索引的创建 alter t ...
分类:
数据库 时间:
2016-04-08 14:39:58
阅读次数:
216
mysql查看表结构命令,如下:desc 表名;show columns from 表名;describe 表名;show create table 表名; use information_schema; #切换到information_schema数据库select * from columns
分类:
数据库 时间:
2016-03-04 13:07:34
阅读次数:
213
mysql查看表结构命令,如下:desc 表名;show columns from 表名;describe 表名;show create table 表名;示例:use testDB; #切换到testDB数据库select * from columns where table_name='表名';...
分类:
数据库 时间:
2016-01-09 01:02:46
阅读次数:
177
一、简单描述表结构,字段类型desc tabl_name;显示表结构,字段类型,主键,是否为空等属性,但不显示外键。二、查询表中列的注释信息select * from information_schema.columnswhere table_schema = 'db'#表所在数据库and tabl...
分类:
数据库 时间:
2015-09-30 17:57:57
阅读次数:
285
mysql>show columns from ap_record;
分类:
数据库 时间:
2015-08-07 23:44:28
阅读次数:
190
MySQL查看表结构SQL语句=mysql查看表结构命令,如下:desc 表名;show columns from 表名;describe 表名;show create table 表名;use information_schema; #切换到information_schema数据库select ...
分类:
数据库 时间:
2015-05-26 12:18:38
阅读次数:
215
mysql查看表结构命令,如下: desc 表名; show columns from 表名; describe 表名; show create table 表名; use information_schema select * from columns where table_name=‘表名‘; 顺便记下: show databases...
分类:
数据库 时间:
2014-11-05 13:14:05
阅读次数:
203