多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## 关联 ### 内连接 ~~~ /** * 内连接 * @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'); ~~~