我想在 mysql中添加计划任务自动执行。需求:
每周1-5的早上10.30 打开注册申请功能。比如update tables set type=1 where id=1
获取申请人数 select count(1) from users where verify_status=0
当人数达到50个时,关闭注册申请。比如update tables set type=0 where id=1
要怎么弄呀。
求大神帮忙!!!感激不尽