摘要: mysql5.5之后默认的存储引擎是innoDB show engine 可以查询数据库所支持的存储引擎,下图是mysql5.7版本的支持引擎 修改表的存储引擎sql语句: alter table tablename engine=innodb 主要引擎的特性: 1. myisam存储引擎: 不支持 阅读全文
posted @ 2018-03-12 16:34 nothing_fish 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 字符串操作函数 数值函数 日期时间函数 流程函数 其他 阅读全文
posted @ 2018-03-12 16:07 nothing_fish 阅读(150) 评论(0) 推荐(0) 编辑
摘要: <=> 等同于=,但是=是不可以比较null的,<=>可以比较null regexp 正则表达式比较 between 1 and 100 in (value1,value2) 逻辑运算符: & 位与 | 位或 ^ 位异或(相异为1) ~ 取反 >> 右移 << 左移 阅读全文
posted @ 2018-03-12 15:42 nothing_fish 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 特殊需要注意的数据类型: 设定数据的长度和小数位数:float(M,D) M表示一共有M位,D表示小数位数有D位(decimal) bit存储二进制数,默认是1位,bin()显示二进制格式,hex()显示16进制格式 日期:date , time , datatime , year , timest 阅读全文
posted @ 2018-03-12 15:16 nothing_fish 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 命令行下命令: 阅读全文
posted @ 2018-03-12 15:07 nothing_fish 阅读(153) 评论(0) 推荐(0) 编辑