Database Reference
In-Depth Information
Tip
If you wish to know how to create a table with the attributes mentioned in Table 1.1, read
the DynamoDB data types section first. During the creation of a DynamoDB table, it is
only possible to specify secondary index attributes, and hash and range key attributes. It is
not possible to specify other attributes (previously mentioned as optional attributes) dur-
ing the creation of the table. In fact, except for hash and range key attributes, all other at-
tributes are part of the items (rows); that is the reason why we don't specify these optional
attributes while creating the table.
Let's call the table Tbl_Book . The table has seven attributes. The first two attributes act
as a compound primary key. We set the first attribute BookTitle as the hash key and
the second attribute Author as the range key. Except for the primary key attributes, all
other attributes are optional and we need not specify nonprimary key attributes while cre-
ating the table.
Search WWH ::




Custom Search