Todos os produtos
Search
Central de documentação

Tablestore:Excluir uma tabela de mapeamento

Última atualização: Jul 03, 2026

Use a instrução DROP MAPPING TABLE para excluir uma tabela de mapeamento. É possível excluir várias tabelas de mapeamento ao mesmo tempo.

Usage notes

SQL query is supported in Tablestore SDK for PHP V5.1.0 and later. Make sure that a supported version is installed.

For the version history of Tablestore SDK for PHP, see Version history of Tablestore SDK for PHP.

Pré-requisitos

Um cliente foi inicializado. Para mais informações, consulte Inicializar um cliente do Tablestore.

Método

public function sqlQuery(array $request)

Parâmetros

request (obrigatório): instrução SQL a ser executada.

Código de exemplo

O código de exemplo a seguir demonstra como executar a instrução DROP MAPPING TABLE para excluir uma tabela de mapeamento chamada test_table:

$request = array(
    'query' => 'DROP MAPPING TABLE `test_table`;'
);
$response = $otsClient->sqlQuery($request);
print json_encode($response, JSON_PRETTY_PRINT);