CANCEL JOB
Cancels an asynchronous task.
tip
- To execute the
CANCEL JOBstatement, you must specify thejob_id. - A running task is terminated. A task that has not started will not be executed.
- If you execute the
cancel jobstatement for a task that has already completed, anERROR 4018 (HY000): Entry not existerror is returned. - After a task is canceled, you can still view the task status.
Syntax
CANCEL JOB 'job_id';
Examples
CANCEL JOB '2010011125899906847397';
3 rows in set (0.012 sec)