All Products
Search
Document Center

Tablestore:Delete a mapping table

Last Updated:Apr 28, 2025

You can use the DROP MAPPING TABLE statement to delete a mapping table. You can delete multiple mapping tables simultaneously.

Usage notes

The SQL query feature is supported by Tablestore SDK for Python V5.4.2 and later. When you use the SQL query feature, make sure that a supported version of Tablestore SDK for Python is installed.

For more information, see Version history of Tablestore SDK for Python.

Prerequisites

A client is initialized. For more information, see Initialize a Tablestore client.

Method description

def exe_sql_query(self,query)

Parameter description

query (required): The SQL statement to execute.

Sample code

The following sample code provides an example on how to execute the DROP MAPPING TABLE statement to delete a mapping table named test_table:

def drop_mapping_table(client):
    query = 'drop mapping table test_table'
    client.exe_sql_query(query)