Database Reference
In-Depth Information
The mandatory attributes, name and type, will be already populated and we cannot change
them. But we can add the attribute values (which must be unique).
In addition to that, we can simple click on empty textboxes (under hash and range key at-
tribute name) to add item-specific attribute name, type, and value.
Here the first four attributes are of the type String , so we can enter the corresponding
values in the attribute value field.
While entering multivalued data for a Set data type ( StringSet for the Language
field), specify multiple strings or numbers by clicking on the plus sign to the right of the
value textbox. Once all the attributes are entered, click on the Put Item button, which will
put this item into the Tbl_Book table.
To view the inserted item, click on the Browse Items tab, select the Scan radio button,
and click on the Go button. Now we will be able to see the table content as shown in the
following screenshot:
The String attribute values are enclosed in double quotes, and the Set attribute values
are enclosed by set brackets. The number attribute values won't be enclosed by any char-
acter.
There are a few rules while using the Set data type. These rules are as follows:
Set must have a nonzero number of elements (that is, empty sets are not permit-
ted)
Set must not have duplicate values (that is, the Language set will not take
English , English )
Search WWH ::




Custom Search