不唯一的表/别名:表名

时间:2012-04-23 13:05:09

标签: mysql sql codeigniter

我收到错误错误号码:1066

不唯一的表/别名:'fixed_asset_reissue'

SELECT * FROM 
(`fixed_asset_reissue`, `fixed_asset_reissue`) 
RIGHT JOIN `fixed_asset_distribution` ON 
`fixed_asset_distribution`.`fixed_asset_list_id`=
`fixed_asset_reissue`.`fixed_asset_list_id` 
WHERE `customer` = 'R/00567/00'

代码是

$get2= $this->db->select('*')
           ->from('fixed_asset_reissue')
           ->join('fixed_asset_distribution','fixed_asset_distribution.fixed_asset_list_id=fixed_asset_reissue.fixed_asset_list_id','right')
            ->where('customer',$cust_id);
    $data['reissue']=$get1->get('fixed_asset_reissue')->result();

1 个答案:

答案 0 :(得分:2)

从get语句或语句中删除此'fixed_asset重新发行'表单。这是问题

相关问题