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

关于CI 3加入的模糊字段

I have many branches and under one branch there are multiple cars.

So I need to join branch table with the car table .

My following code outputs an error like, "Column 'branch_id' in field list is ambiguous"

 $this->db->join("company","branch.company_id=company.company_id");
 $this->db->join("cars","branch.branch_id = cars.branch_id");

I have not used repeat of branch_id .

Any suggestion ?

Thank you.

近期文章

  • wordpress中所有页面中的徽标
  • 什么`!(error_reporting()&$ errorcode)`做(PHP)?
  • 在Doxygen中记录PHP类常量
  • Symfony Form过滤下拉选项
  • Wp admin:无法上传和查看精选图片
  • 如何正确解析Apple Mac联系人vCard?
  • 从数据库获取分层格式的From-To Fields
  • 在流明中,我想为任何异常添加自定义响应
  • PHP Slim API中的查询字符串JWT JSON Web令牌认证
  • 如何在PHP android中1条件为真时从服务器获取数据?
  • PHP不支持Biometrics Attendence Machine的SDK的dll文件
  • 查询花时间执行
  • Codeigniter Cron作业消耗更多时间然后插入数据库
  • mysqli转换获取查询
  • Magento Cronjob缓存配置
  • 如何格式化Chrome Postman应用程序?
  • 通过PHP URL传递数据收集
  • Wordpress上的Bootstrap折叠导航栏
  • 将时间从上午/下午转换为24小时[重复]
  • 数据不从mysql json数据类型返回

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华