SHOW-EXPORT
SHOW-EXPORTβ
Nameβ
SHOW EXPORT
Descriptionβ
This statement is used to display 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];
illustrate: 1. If db_name is not specified, the current default db is used 2. If STATE is specified, matches EXPORT state 3. You can use ORDER BY to sort any combination of columns 4. If LIMIT is specified, limit matching records are displayed. Otherwise show all
Exampleβ
-
Show all export tasks of default db
SHOW EXPORT;
-
Display the export tasks of the specified db, sorted by StartTime in descending order
SHOW EXPORT FROM example_db ORDER BY StartTime DESC;
-
Display the export tasks of the specified db, the state is "exporting", and sort by StartTime in descending order
SHOW EXPORT FROM example_db WHERE STATE = "exporting" ORDER BY StartTime DESC;
-
Display the export task of the specified db and specified job_id
SHOW EXPORT FROM example_db WHERE ID = job_id;
-
Display the specified db and specify the export task of the label
SHOW EXPORT FROM example_db WHERE LABEL = "mylabel";
Keywordsβ
SHOW, EXPORT