All Products
Search
Document Center

Tablestore:How do I obtain multiple rows of data based on the value of a primary key column?

Last Updated:Apr 02, 2025

To obtain multiple rows of data based on the value of a primary key column, you can call the GetRange operation or use a search index or the SQL query feature. Select an appropriate method based on the actual scenario.

  • Call the GetRange operation: You can call the GetRange operation to query data. For more information, see Read data.

  • Use a search index: After you create a search index, you can use the search index to query data. For more information, see Getting started.

  • Use the SQL query feature: After you create a mapping table for a table, you can execute the SELECT statement to query data. For more information, see Use SQL query.