2018年12月27日

mysql 优化like查询

摘要: 1. like %keyword 索引失效,使用全表扫描。但可以通过翻转函数+like前模糊查询+建立翻转函数索引=走翻转函数索引,不走全表扫描。 2. like keyword% 索引有效。 3. like %keyword% 索引失效,也无法使用反向索引。 1. 使用下面的函数来进行模糊查询,如 阅读全文

posted @ 2018-12-27 14:53 Alex_guoyihao 阅读(832) 评论(0) 推荐(0) 编辑

2018年12月18日

响应式布局--设置rem自适应

摘要: //designWidth:设计稿的实际宽度值,需要根据实际设置 //maxWidth:制作稿的最大宽度值,需要根据实际设置 //这段js的最后面有两个参数记得要设置,一个为设计稿实际宽度,一个为制作稿最大宽度,例如设计稿为750,最大宽度为750,则为(750,750) ;(function(de 阅读全文

posted @ 2018-12-18 15:54 Alex_guoyihao 阅读(521) 评论(0) 推荐(0) 编辑

2018年12月12日

网站资源

摘要: 猎手导航:https://www.lsdhss.com/ 快手:http://search.chongbuluo.com/ 大数据导航:http://hao.199it.com/ 知乎收藏夹:https://zhuanlan.zhihu.com/p/32113130 盘多多:http://www.p 阅读全文

posted @ 2018-12-12 10:21 Alex_guoyihao 阅读(454) 评论(0) 推荐(0) 编辑

2018年12月7日

MySQL的隐式类型转换整理总结

摘要: 当我们对不同类型的值进行比较的时候,为了使得这些数值「可比较」(也可以称为类型的兼容性),MySQL会做一些隐式转化(Implicit type conversion)。 比如下面的例子: 1 2 3 4 mysql> SELECT 1+'1'; -> 2 mysql> SELECT CONCAT( 阅读全文

posted @ 2018-12-07 15:17 Alex_guoyihao 阅读(465) 评论(0) 推荐(0) 编辑

2018年10月29日

MySQL查询优化 对not in 、in 的优化

摘要: 因为 not in不走索引,所以不在不得已情况下,就不要使用not in 下面使用 join 来替代not in 做查询 select ID from A where ID not in (select ID from B) 替换为 select A.ID from A left join B on 阅读全文

posted @ 2018-10-29 11:52 Alex_guoyihao 阅读(9000) 评论(3) 推荐(0) 编辑

2018年10月26日

好用的前端资源

摘要: 图表:echarts(echarts.common.min.js)、easyui 框架:bootstrap、layui、pintuer 手机:weui js: pdf.js:http://www.cnblogs.com/kagome2014/p/kagome2014001.html 阅读全文

posted @ 2018-10-26 09:45 Alex_guoyihao 阅读(171) 评论(0) 推荐(0) 编辑

2018年10月12日

php解决sql_server连接问题

摘要: 1.首先根据phpinfo()查看当前php版本以及线程安全情况(ts或者nts);2.下载sqlsrv扩展(适用32位php) 下载链接为https://www.microsoft.com/en-us/download/details.aspx?id=200983.解压出dll文件,选择需要的两个 阅读全文

posted @ 2018-10-12 16:24 Alex_guoyihao 阅读(271) 评论(0) 推荐(0) 编辑

2018年9月20日

css 自动换行,超出省略号代替

摘要: overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; 阅读全文

posted @ 2018-09-20 20:51 Alex_guoyihao 阅读(1717) 评论(0) 推荐(0) 编辑

2018年9月19日

PHP程序员进阶学习书籍参考指南

摘要: PHP程序员进阶学习书籍参考指南 【初阶】(基础知识及入门) 01. 《PHP与MySQL程序设计(第4版)》 http://item.jd.com/10701892.html 02. 《深入浅出MySQL 数据库开发 优化与管理维护 第2版》 http://item.jd.com/11381295 阅读全文

posted @ 2018-09-19 08:43 Alex_guoyihao 阅读(1020) 评论(0) 推荐(0) 编辑

2018年8月28日

实用jquery插件

摘要: jquery toast 一个弹窗插件 jquery.form.min.js 一个Ajax表单插件 阅读全文

posted @ 2018-08-28 16:50 Alex_guoyihao 阅读(95) 评论(0) 推荐(0) 编辑

导航