
mysql
你好1995
我知道你在改变!
展开
-
MySql表结构修改
欢迎使用Markdown编辑原创 2017-05-23 23:57:13 · 323 阅读 · 0 评论 -
MySQL的数据类型以及int(11)的理解
在MySQL中,大致可以分成如下几种类型: 1.数值型(1)整型 数据类型 占的字节数 有符号范围 tinyint(m) 1个字节 范围(-128~127) smallint(m) 2个字节 范围(-32768~32767) mediumint(m) 3个字节 范围(-8388608~8388607) int(m) 4个字节 范围(-原创 2017-05-24 01:06:11 · 9905 阅读 · 0 评论 -
MySQL数据字段属性
MySQL有如下字段属性:模板: create table test( id int unsigned auto_increment primary key, name varchar(30) not null default “”, age int not null default 0, height float not null default 0.00 );原创 2017-05-24 16:52:58 · 415 阅读 · 0 评论 -
MySQL索引的创建、删除及优缺点
1.索引是什么: 索引就像一本书的目录,你想去找“鲁迅的《从百草园到三味书屋》”:直接在目录中找到这篇文章是325页,然后直接翻到325页。如果没有索引,你必须从第一页开始,一页一页的找,直到325页的时候才能找到。浪费时间和精力(有这时间去打一把王者荣耀了!!)。 2.索引包括:索引包括单列索引和组合索引。 单列索引(主键索引,唯一索引,普通索引):一个索引只包含一个列。 组合原创 2017-05-27 00:33:08 · 932 阅读 · 0 评论 -
MySQL存储引擎
写这篇文章之前,看了好多关于存储引擎的文章,算是集大家的看法和我自己的一点想法,我们共勉!关于存储引擎的命令:1.查看当前默认引擎: show variables like ‘default_storage_engine’; 2.列出当前数据库所支持到引擎: show engines; 3.查询哪些存储引擎支持事物处理: select engine from informati原创 2017-05-30 20:18:55 · 269 阅读 · 0 评论