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;
// Any idea why i get these errors
If anything the query should be shortened to
update callingroute AS t1
SET t1.day = dayname(date)
WHERE t1.calling_route_id IS NOT NULL
AND status = 'OK';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.