You can read data from, write data to, update data in, or delete data from a table in the Tablestore console.
Write data
- Log on to the Tablestore console.
- On the Overview page, click the name of the required instance or click Manage Instance in the Actions column corresponding to the instance.
- In the Tables section of the Instance Details tab, click the name of the required table, and click the Data Editor tab. You can also click Data Editor in the Actions column corresponding to the table.
- On the Data Editor tab, click Insert.
- In the Insert dialog box, set Primary Key Value. Click Add Column. Set Name, Type, Value, and Version.By default, System Time is selected, which indicates that the current system time is used as the version number of the data. You can also clear System Time and enter the version number of the data.
- Click OK.Rows containing the written data are displayed on the Data Editor tab.Note A maximum of 50 rows of data can be displayed in the Tablestore console. However, Tablestore does limit the number of rows of data that can be displayed when you use Tablestore SDKs.
Update data
You can update data in the attribute columns of a row.
- Log on to the Tablestore console.
- On the Overview page, click the name of the required instance or click Manage Instance in the Actions column corresponding to the instance.
- In the Tables section of the Instance Details tab, click the name of the required table, and click the Data Editor tab. You can also click Data Editor in the Actions column corresponding to the table.
- On the Data Editor tab, select the row of data that you want to update. Click Update.
- In the Update dialog box, modify the type and value of a primary key column, add or remove attribute columns, or update or delete data from attribute columns.
- You can click Add Column to add an attribute column. You can also click the icon to delete an attribute column.
- In the first Actions column, if you select Update, you can modify data in attribute columns. If you select Delete, you can delete data of the selected version. If you select Delete All, you can delete all versions of the data.
- Click OK.
Query data
In the Tablestore console, you can query data in a single row (GetRow) or data within a specified range (RangeQuery).
To query data in a single row, perform the following operations:
- Log on to the Tablestore console.
- On the Overview page, click the name of the required instance or click Manage Instance in the Actions column corresponding to the instance.
- In the Tables section of the Instance Details tab, click the name of the required table, and click the Data Editor tab. You can also click Data Editor in the Actions column corresponding to the table.
- On the Data Editor tab, click Search.
- Set filter conditions.
- Click OK.Data that meets the filter conditions is displayed on the Data Editor tab.
To query data within a specified range, perform the following steps:
- Log on to the Tablestore console.
- On the Overview page, click the name of the required instance or click Manage Instance in the Actions column corresponding to the instance.
- In the Tables section of the Instance Details tab, click the name of the required table, and click the Data Editor tab. You can also click Data Editor in the Actions column corresponding to the table.
- On the Data Editor tab, click Search.
- Set filter conditions.
- Click OK.Data that meets the filter conditions is displayed based on the specified order on the Data Editor tab.
Delete data
You can delete data that you no longer need.
- Log on to the Tablestore console.
- On the Overview page, click the name of the required instance or click Manage Instance in the Actions column corresponding to the instance.
- In the Tables section of the Instance Details tab, click the name of the required table, and click the Data Editor tab. You can also click Data Editor in the Actions column corresponding to the table.
- On the Data Editor tab, select the row of data that you want to delete. Click Delete.
- In the Delete message, click OK.