💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
``` $data = Db::table('articles') // as 可省略 ->alias('as a') ->join('categories c', 'a.cate_id = c.id') ->field('a.id, a.title, a.description, a.add_time, a.click, a.thumb, c.cate_name') ->fetchSql(true) ->select(); ``` ```sql SELECT `a`.`id`,`a`.`title`,`a`.`description`,`a`.`add_time`,`a`.`click`,`a`.`thumb`,`c`.`cate_name` FROM `articles` as a INNER JOIN `categories` `c` ON `a`.`cate_id`=`c`.`id`; ```