多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
#### 左连接 left join ~~~ $articles = Be::getTable('cms_article') ->alias('a') ->leftJoin('cms_category AS c', 'a.category_id = c.category_id') ->where('a.category_id', 1) ->where('a.create_time', '>', '2017-12-01') ->getObjects('a.article_id, a.title, c.category_name'); ~~~ 等效SQL: ~~~ SELECT a.article_id, a.title, c.category_name FROM cms_article AS a LEFT JOIN cms_category AS c ON a.category_id = c.category_id WHERE a.category_id = 1 AND a.create_time > '2017-12-01' ~~~