How to get item count from DynamoDB?

前端 未结 12 2315
故里飘歌
故里飘歌 2020-12-04 17:15

I want to know item count with DynamoDB querying.

I can querying for DynamoDB, but I only want to know \'total count of item\'.

For example, \'SELECT COUNT(*

12条回答
  •  情书的邮戳
    2020-12-04 18:07

    Replace the table name and use the below query to get the data on your local environment:

    aws dynamodb scan --table-name  --select "COUNT" --endpoint-url http://localhost:8000
    

    Replace the table name and remove the endpoint url to get the data on production environment

    aws dynamodb scan --table-name  --select "COUNT"
    

提交回复
热议问题