SHOW EXPORT
Description
This statement is used to show the execution of the specified export task Grammar: SHOW EXPORT [FROM db_name] [ WHERE [ID = your_job_id] [STATE = [“PENDING”|”EXPORTING”|”FINISHED”|”CANCELLED”]] [LABEL = “your_label”] ] [ORDER BY …] [LIMIT limit];
Explain:
- If db_name is not specified, use the current default DB
- If STATE is specified, the EXPORT state is matched
- Any column combination can be sorted using ORDER BY
- If LIMIT is specified, the limit bar matching record is displayed. Otherwise, all of them will be displayed.
example
Show all export tasks of default DB SHOW EXPORT;
Show the export tasks of the specified db, sorted in descending order by StartTime SHOW EXPORT FROM example_db ORDER BY StartTime DESC;
Show the export task of the specified db, state is “exporting” and sorted in descending order by StartTime SHOW EXPORT FROM example_db WHERE STATE = “exporting” ORDER BY StartTime DESC;
Show the export task of specifying dB and job_id SHOW EXPORT FROM example_db WHERE ID = job_id;
Show the export task of specifying dB and label SHOW EXPORT FROM example_db WHERE LABEL = “mylabel”;
keyword
SHOW,EXPORT