#1052-字段列表中的“日期”列不明确

时间:2019-03-19 12:30:04

标签: sql mysql-error-1052

update callingroute AS t1
INNER JOIN callingroute AS t2                
SET t1.day = (select date FROM (select dayname(date) from callingroute where status = 'OK')AS X) 
WHERE t1.calling_route_id IS NOT NULL;

//知道为什么我会出现这些错误

1 个答案:

答案 0 :(得分:0)

如果有任何查询,应缩短为

update callingroute AS t1                
SET t1.day = dayname(date) 
WHERE t1.calling_route_id IS NOT NULL
  AND status = 'OK';