1、错误描写叙述
1 queries executed, 0 success, 1 errors, 0 warnings 查询:SELECT (SELECT CONCAT( s.name, '/', sr.reame, '[', DATE_FORMAT(a.startTime, '%Y-%m-%d'), ']' ) FROM t_stu_info a, t_... 错误代码: 1066 Not unique table/alias: 'c' 运行耗时 : 0 sec 传送时间 : 0 sec 总耗时 : 0.001 sec
2、错误原因
在拼接SQL语句时,给t_stu_amount 和t_tea_info 取别名时,都取c
... from t_stu_info a,t_stu_amount c,t_tea_info c
导致数据库表别名反复
3、解决的方法
将两个表的别名改为不一样的,如 ... from t_stu_info a,t_stu_amount c,t_tea_info o