摘要: 统计文章与分类中间表中c_id的数目,也就是category表中total字段的值原生SQL语句:select count(c_id) from article_category where c_id=1;原来错误的写法:正确的写法:ArticleCategory::find()->where(['... 阅读全文
posted @ 2015-07-31 20:17 向着太阳生 阅读(5563) 评论(0) 推荐(0)