Use a instrução DROP MAPPING TABLE para excluir uma tabela de mapeamento. É possível excluir várias tabelas de mapeamento simultaneamente.
Observações de uso
Instale a versão mais recente do Tablestore SDK for Go antes de usar o recurso de consulta SQL.
Pré-requisitos
Inicialize um cliente. Para mais informações, consulte Inicializar um cliente do Tablestore.
Método
func (client *TableStoreClient) SQLQuery(req *SQLQueryRequest) (*SQLQueryResponse, error)
Código de exemplo
O exemplo a seguir mostra como executar a instrução DROP MAPPING TABLE para excluir uma tabela de mapeamento chamada test_table:
func dropMappingTable(client *tablestore.TableStoreClient) {
// Create an SQL request. To delete multiple mapping tables, separate the mapping tables with commas (,).
request := &tablestore.SQLQueryRequest{Query: "drop mapping table test_table"}
// Execute the SQL request.
response, err := client.SQLQuery(request)
}