You can execute the drop mapping table statement to delete mapping tables that are created for tables.

Note For more information about the drop mapping table statement, see Delete mapping tables.

Prerequisites

Parameters

Parameter Description
query The SQL statement. Configure the parameter based on the required feature.

Examples

Execute the drop mapping table test_table statement to delete the mapping tables that are created for the table named test_table.

func dropMappingTable(client *tablestore.TableStoreClient) {
    // Create a SQL request. 
    request := &tablestore.SQLQueryRequest{Query: "drop mapping table test_table"}

    // Obtain the response to the SQL request. 
    response, err := client.SQLQuery(request)
}