
mysql
iteye_8282
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
关于Mysql某一个区间的查询
select * from tb_member_level where (( 70 >= integral_min and 70 = integral_min and 79 =70 and integral_max原创 2017-02-14 15:46:41 · 3056 阅读 · 0 评论 -
关于Mysql数据查询的一些优化和函数的使用
1、用like模糊搜索时,用 INSTR(str,substr) 函数替代。(str,对应的数据库表字段,substr对应的要查询的数据) 2、CONCAT()函数用于将多个字符串连接成一个字符串,多用于 like查询 3、FIND_IN_SET(str,strlist) 查询某个字段中带有逗号分隔的数据。str:要查询的数据;strlist:sql字段 如果想要按照ID为4,2,3这样排...原创 2017-04-28 09:20:02 · 210 阅读 · 0 评论