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;
//知道为什么我会出现这些错误
答案 0 :(得分:0)
如果有任何查询,应缩短为
update callingroute AS t1
SET t1.day = dayname(date)
WHERE t1.calling_route_id IS NOT NULL
AND status = 'OK';