Step 3: Read data from a table
In this step, you will read back an item that was created in Step 2: Write data to a table using the console
or Amazon CLI. You can
use the DynamoDB console or the Amazon CLI to read an item from the Music
table by
specifying Artist
and SongTitle
.
For more information about read operations in DynamoDB, see Reading an item.
Follow these steps to read data from the Music
table using the
DynamoDB console.
Open the DynamoDB console at https://console.amazonaws.cn/dynamodb/
. -
In the navigation pane on the left side of the console, choose Tables.
-
Choose the Music table from the table list.
-
Select the View items.
-
On the Items tab, view the list of items stored in the table, sorted by
Artist
andSongTitle
. The first item in the list is the one with theArtist
Acme Band and theSongTitle
Happy Day.
The following Amazon CLI example reads an item from the Music
. You can
do this either through the DynamoDB API or PartiQL, a SQL-compatible query
language for DynamoDB.
To update the data in your table, proceed to Step 4: Update data in a table.