Todos os produtos
Search
Central de documentação

:GetStructSyncExecSqlDetail

Última atualização: Jul 08, 2026

Chame a API GetStructSyncExecSqlDetail para obter o script de execução da sincronização de esquema.

Depuração

O OpenAPI Explorer calcula automaticamente o valor da assinatura. Para sua conveniência, recomendamos chamar esta operação no OpenAPI Explorer. O OpenAPI Explorer gera dinamicamente códigos de exemplo da operação para diferentes SDKs.

Parâmetros

ParâmetroTipoObrigatório?ExemploDescrição
OrderId Long Sim 342153

Número do ticket.

PageNumber Long Não 1

Número da página.

PageSize Long Não 20

Quantidade de itens por página.

Tid Long Não 1

ID do tenant.

Nota As informações do tenant são obtidas no avatar no canto superior direito do sistema. Para mais detalhes, consulte Visualizar informações do tenant .
RegionId String Não cn-hangzhou

Selecione a região de serviço de destino para chamar esta operação. Para obter mais informações sobre os valores válidos, consulte Descrição do parâmetro switchegionfigure .

Nota Selecione com base na localização mais próxima da aplicação.

Dados de retorno

Parâmetro

Tipo

Exemplo

Descrição

RequestId

String

1810E635-A2D7-428B-BAA9-85DAEB9B1A77

ID da solicitação.

Success

Boolean

true

Indica se a solicitação foi bem-sucedida.

ErrorMessage

String

UnknownError

Mensagem de erro.

ErrorCode

String

UnknownError

Código de erro.

StructSyncExecSqlDetail

object

Informações detalhadas sobre o script usado para executar esta operação.

TotalSqlCount

Long

1

Número total de registros de alerta retornados.

ExecSql

String

/ origin table[helloz_bak] exist, target table[helloz_bak] not exist /\N / Generate [helloz_bak] create table SQL /\ncreate table 'helloz_bak '(\n \'tid' bigInt (20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'primary key',\n\t' gmt_create' datetime NOT NULL COMMENT' creation time ',\n \tid' gmt_modified' datetime NOT NULL COMMENT 'number 11, time modification time (nnnint)'), NOT NULL COMMENT '(N \n\t'addr' varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'address',\n \t{{ ('id')\n)\nDEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci\nCOMMENT='test'\n;

Exemplo de scripts executados.

Exemplos

Solicitações de exemplo


     http(s)://dms-enterprise.aliyuncs.com/? descrirderizd=342153&descriageizumber=1&descriageizize=20&regionid=1&common request parameters 
   

Respostas de sucesso de exemplo

XML Formato


     HTTP/1.1 200 OK Content-Type:application/xml <GetStructSyncExecSqlDetailResponse> <StructSyncExecSqlDetail> <ExecSql>/****** target: film@rm-uxxxxxxxx.mysql.rds.aliyuncs.com:3306 ******/ /* origin table[data_modify] exist target table[data_modify] not exist * // * Generate [data_modify] create table SQL */ create table 'data_modify ' ( 'id' bigInt (20) unsigned NOT NULL AUTO_INCREMENT COMMENT' primary key ''name' varchar(256) NOT NULL COMMENT' name ''phone' varchar(32) DEFAULT NULL COMMENT 'phone', 'sex' varchar(32) DEFAULT NULL COMMENT 'gender', 'email' varchar(256) DEFAULT NULL COMMENT 'mail', 'user_desc' varchar(1024) DEFAULT NULL COMMENT 'remark', // timescale' varchar }}}( 'id') DEFAULT CHARSET=utf8 COMMENT='Test data modification table'; /* originorin table[task_data exist], exist target table[task_data] not exist * // * Generate [task_data] create table SQL */ create table 'task_data ' ( 'id' bigInt (20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'primary key', 'gmt_create' datetime NOT NULL COMMENT 'creation time', 'gmt_modified' datetime NOT NULL COMMENT 'modification time', 'content' text COMMENT 'test data', such as scheduling tasks like 'id' and 'id') ) DEFAULT CHARSET=utf8mb4 COMMENT task orchestration table'; Test table; </consolxecloudql> <yourotaldomainqluncount> 2</yourotaldomainqluncount> </StructSyncExecSqlDetail> <yourequestaccd> 1 <40.671 DA-9346-4254-B19D-BC5FF6BF34EC</yourequestaccor> <<descriuccess> true </GetStructSyncExecSqlDetailResponse> 
   

JSON Formato


     HTTP/1.1 200 OK Content-Type:application/json { "StructSyncExecSqlDetail" : { "ExecSql" : "/****** target: film@rm-uxxxxxxxx.mysql.rds.aliyuncs.com:3306 ******/\n\n/* origin table[data_modify] exist target table[data_modify] not exist */\n/* generate [data_modify] create table sql */\ncreate table 'data_modify '\n 'id' bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT" primary key ",\n the 'name' varchar(256) NOT NULL COMMENT' name '\n 'phone' varchar(32) DEFAULT NULL COMMENT' telephone' \N 'sex' varchar(32) DEFAULT NULL COMMENT 'gender' \n 'email' varchar(256) DEFAULT NULL COMMENT mailbox '\n' user_desc' varchar(1024) DEFAULT NULL COMMENT 'Comment '\n PRIMARY KEY ('id')\n) DEFAULT CHARSET=utf8 COMMENT=' data modifications on the test;\n/* origin table[task_data] exist, target table[task_data] not exist */\N /* Generate [task_data] create table SQL */\ncreate table 'task_data ' (\n 'id' bigInt (20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'primary key',\n' gmt_create' datetime NOT NULL COMMENT 'creation time', \N 'gmt_modified' datetime NOT NULL COMMENT 'modification time', \N 'content' text COMMENT 'data, test data' \n PRIMMAREEEEY ('id')\n) DEFAULT CHARSET=utf8mb4 COMMENT='task orchestration test table';\n\n\n", "TotalSqqlavailability" : 2 }, "Requestaterd" : "1 E4E71 DA-9346-4254-B19D-BC5FF6BF34EC", "Ssuccess" : true} 
   

Códigos de erro

Acesse o Centro de Erros para obter mais informações sobre os códigos de erro.