摘要: 1、通过条件查询出上一条与下一条 sql说明:本表关联本表,然后通过其中一个表,查询出对应的条件,再用另外一个表求出上一条与下一条的数据,求出来的数据是多条的 SELECT ua.id, ua.wx_pages, ua.wx_pages_source, uaa.id as uaa_id, uaa.w 阅读全文
posted @ 2019-09-05 11:27 FcLwYf 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1、SINTER 说明:多key之间取交集数据 key1 = {a,b,c,d} key2 = {c} key3 = {a,c,e} SINTER key1 key2 key3 = {c} 2、sadd 说明:添加队列数据 3、SUNION 说明:多key之间取并集数据 4、取出lRange多少,按 阅读全文
posted @ 2019-09-05 11:23 FcLwYf 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、多个字段多重排序 function sortArrByManyField(){ $args = func_get_args(); // 获取函数的参数的数组 if(empty($args)){ return null; } $arr = array_shift($args); if(!is_ar 阅读全文
posted @ 2019-09-05 11:19 FcLwYf 阅读(111) 评论(0) 推荐(0) 编辑