摘要: 获取用户发布消息的指定消息id的总和点赞数 Yii $productIds = ['2260', '2262', '2263', '2268', '2269']; $plSql = Like::find()->where([ 'pId' => $pIds, 'isLike' => 1 ])->sel 阅读全文
posted @ 2019-11-26 17:23 好胖的兔子 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 在开发时候,我们经常使用的是默认的排序规则,但在某些特殊情况下,通过指定顺序来进行排序 -- fileld自定义排序时,应该是非主键的,否则主键是无效 SELECT * FROM customer WHERE telephone IN ( '1832xxxx701', '1739xxxx553', 阅读全文
posted @ 2019-11-26 13:56 好胖的兔子 阅读(472) 评论(0) 推荐(0) 编辑