💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 左连接 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' ~~~