是什么导致"不唯一的表/别名"错误?

时间:2015-08-19 10:29:23

标签: sql

数据库错误

  

错误:SQLSTATE [42000]:语法错误或访问冲突:1066不唯一的表/别名:'漏斗'

SQL Query: SELECT `funnel`.`id`
FROM `salescrm`.`funnel` AS `funnel`
LEFT JOIN `salescrm`.`funnel` AS `funnel` ON (`funnel`.`id` = `funnel`.`id`)
LEFT JOIN `salescrm`.`users` AS `User` ON (`funnel`.`user_id` = `User`.`id`) 
WHERE `funnel`.`id` = 2 LIMIT 1
  

注意:如果要自定义此错误消息,请创建app \ View \ Errors \ pdo_error.ctp

0 个答案:

没有答案