来源于博客:https://www.cnblogs.com/yunfeifei/p/3850440.html 1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎 Read More
posted @ 2019-02-21 17:42 活出自己范儿 Views(128) Comments(0) Diggs(0)
1、substring(start,end)从一个字符串中截取子串 start:截取子串开始的索引,start必须大于等于0,小于等于endend: 截取子串的长度,end必须大于等于0,小于等于字符串长度,如果省略该参数,默认为字符串长度。例子:${‘str’?substring(0)} 结果为s Read More
posted @ 2019-02-21 16:43 活出自己范儿 Views(3154) Comments(0) Diggs(0)