一、一些常见的SQL实践(1)负向条件查询不能使用索引。select * from order where status!=0 and stauts!=1not in/not exists都不是好习惯。可以优化为in查询:select * from order where status in(2,3)(2)前导模糊查询不能使用索引。select * from order where desc like '%XX'而非前导模糊查询则可以:select * from order where desc like 'XX%'(3)数据区分度不大的字段不宜使用索引。select * from us...
11.png1.版本问题CentOS 7.6 64位 目前是最稳定的CentOS 7.8 64位 yum源有问题CentOS 8.0 64位 很多新命令查不到资源
1.校验字符串是否是数字或者2位小数$str = '1.33'; $reg = "/^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/"; $res = preg_match($reg,$str); //合格 1 不匹配 0 Base::dump($res);2.JS开发工具函数https://zhuanlan.zhihu.com/p/113385396?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io