All Products
Search
Document Center

Tablestore:SQL query

Last Updated:Jun 23, 2026

Tablestore SDK for PHP provides SQL query operations for managing mapping tables and querying data.

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.

Features

Operation

Description

Create a mapping table

You can execute the CREATE TABLE statement to create a mapping table for an existing table or a search index.

Update attribute columns of a mapping table

You can execute the ALTER TABLE statement to add or remove attribute columns for an existing mapping table.

Delete mapping tables

You can execute the DROP MAPPING TABLE statement to delete mapping tables.

List the names of mapping tables

You can execute the SHOW TABLES statement to query mapping tables in the current database.

Query information about a table

You can execute the DESCRIBE statement to query information about a table, such as the field names and field types.

Query the index information about a table

You can execute the SHOW INDEX statement to query index information about a table.

Query data

You can execute the SELECT statement to query data in a table.