企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 关联 ### 内连接 ~~~ /** * 内连接 * @param [type] $table [表名称] * @param [type] $on [连接表达式] * @param boolean $full [表是否包含前缀] * @return [type] [description] */ public function join($table, $on, $full = true) Db::table('news')->join('user', 'nid=uid'); ~~~ ### 左连接 ~~~ Db::table('news')->join('user as u', 'nid=u.uid'); ~~~ ### 右连接 ~~~ Db::table('news')->alias('n')->join('user as u', 'n.nid=u.uid'); ~~~