0
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;

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

4

1 回答 1

0

如果有的话,查询应该缩短为

update callingroute AS t1                
SET t1.day = dayname(date) 
WHERE t1.calling_route_id IS NOT NULL
  AND status = 'OK';
于 2019-03-19T12:39:37.947 回答