所以我想update
我的column point
并将其设为0 every friday at 15:00
这是我的代码:
CREATE EVENT updatepoints
ON SCHEDULE
EVERY 1 WEEK
STARTS CURRENT_DATE + INTERVAL 4 - WEEKDAY(CURRENT_DATE) DAY, '15:00:00'
DO
UPDATE people SET point = 0;
我收到错误:
您的SQL语法有错误;检查手册 对应于您的MariaDB服务器版本,以获得正确的语法 靠近' ' 15:00:00' DO UPDATE people SET point = 0'在第4行