All Products
Search
Document Center

Tablestore:Basic data operations

Last Updated:Dec 31, 2024

After you create a data table, you can perform read and write operations on the data in the table. This topic describes the API operations that you can call to perform basic data operations on data in data tables.

API operations

The following table describes the API operations that you can call to perform basic data operations on data in data tables.

Item

API

Description

Read a single row of data

GetRow

You can read a single row of data.

Write a single row of data

PutRow

You can write a single row of data. The system deletes all versions of data in all columns of the existing row and writes a new row of data.

Update a single row of data

UpdateRow

You can add or remove an attribute column in a row, delete a specific version of data from an attribute column, or update the value of an existing attribute column. If the row does not exist, a new row is added.

Delete a single row of data

DeleteRow

You can delete a single row of data. If the row that you want to delete does not exist, the data table remains unchanged after you call the DeleteRow operation.

Read data whose primary key values are within a specific range

GetRange

You can read data whose primary key values are within a specific range.

Read multiple rows of data at the same time

BatchGetRow

You can read multiple rows of data from one or more tables at the same time.

Write multiple rows of data at the same time

BatchWriteRow

You can write multiple rows of data to one or more tables at the same time.