我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

3表连接查询

I'm curious to know what the best way to query this information with the active record query set for codeigniter.

I have 3 tables:

Table 1: "Titles"
         Fields: id, title_name

Table 2: "Roster"
         Fields: id, roster_name

Table 3: "Champions"
         Fields: id, title_id, champion_id, 
                 contender1_id, contender2_id, contender3_id

I'm tried doing this before but it just seems like it doesn't get done correctly because issues arise. Any ideas on how the query should be presented?

Any ideas from anyone?

近期文章

  • PHP将列表项汇总到最接近的五
  • 无法为Google CSE打印Json结果字符串
  • 原生应用程序在iOS中模拟但在Android中不能模拟 - 它是JS吗?
  • 清除div并重新加载新的音频内容
  • 内存不足虽然增加了内存限制
  • 用字符串变量替换preg_match中的引用
  • 每次用户访问页面时如何显示数字1
  • 在多嵌套数组中查找相同键之间的匹配?
  • 如何使用PHP检查菜单项是否在Joomla 2.5中有子项
  • 使用Sharp UMS进行会话管理
  • 变量的PHP设置/配置文件?
  • 泡沫,排序,策略
  • 如何选择类别中的所有项目
  • 如何从具有多个值的字段中提取数据?
  • 如何从PHP连接ireports
  • 将字符串拆分为HTML实体
  • too long
  • too long
  • 小程序出现Cannot read property 'data' of undefined,请问大神们问题出在哪?
  • Android menu上的按钮能否实现点击跳转Fragment?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华