tencent cloud

TDSQL Boundless

DDL_JOBS

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 2026-02-10 11:06:28

Function

INFORMATION_SCHEMA.DDL_JOBS displays the status information of each DDL job.

Field Description

Field Name
Type
Description
id
bigint unsigned
Unique ID of the DDL task.
schema_name
varchar(64)
The schema name corresponding to the DDL job.
table_name
varchar(64)
The table name corresponding to the DDL job.
version
bigint
The version information corresponding to the DDL job.
ddl_status
enum
execution status of the DDL job.
FAIL: Failure.
SUCCESS: Success.
EXECUTING: is executing.
start_timestamp
timestamp
The enablement time of the DDL job.
last_timestamp
timestamp
The update time of the last DDL job.
ddl_sql
longtext
DDL SQL.
info_type
enum
type of DDL task.
info
longtext
Log of essential information during DDL job execution.
is_history
bool
Whether the DDL job has been completed.
1: Finished.
0: Not finished.

Examples

tdsql> create table sbtest1 (id int primary key);
tdsql> select * from information_Schema.ddl_jobs order by id desc limit 1\\G;
*************************** 1. row ***************************
ID: 2
SCHEMA_NAME: tdsql
TABLE_NAME: sbtest1
VERSION: 4
DDL_STATUS: SUCCESS
START_TIMESTAMP: 2025-06-24 15:00:35
LAST_TIMESTAMP: 2025-06-24 15:00:35
DDL_SQL: create table sbtest1 (id int primary key)
INFO_TYPE: CREATE TABLE
INFO: {"rm_idx":[],"wf_rmed":false,"exec_addr":{"ip":"10.10.10.10","port":15035},"row_apply_saved":true,"current_schema_name":"tdsql","ddl_with_complete_info":"","crt_data_obj_task_id":29372684622102841,"dstr_data_obj_task_id":0,"data_obj_to_be_dstr_arr":[],"tbl_tidxid":10028,"row_applied":false,"recov_addr":{"ip":"10.10.10.10","port":15035}}
IS_HISTORY: 1
1 row in set (0.00 sec)

Ajuda e Suporte

Esta página foi útil?

comentários