In this video, we are going to add an item in the dynamic DB table using the particle scripts.
We will use execute statement command for this action.
As you can see that I have created a separate JavaScript file which is a particular input item and use
the execute statement command and passing these parameters.
The important part is the parameters.
In the parameters we have statement and the parameters attribute in these statements.
As you can see that we can use SQL scripts like insert into passing to our dynamic DB table and putting
the values for the ID primary key product name as an attribute.
So these are the values for the ID.
We are inserting any partition ID, which is three.
If you already have a three ID in your table, this will be returned back to the duplicate exception.
But since we are creating a native ID, we don't have any exception.
And this is the string of the new product name.
Okay.
In order to run this file, we can open our command window and run the note.
Article put item.
So hit the enter and see what's happened.
See that this is successfully created new item on dynamic TV.
In order to verify that, come to dynamic IMDB and run the scan command and see that the new item is
located in our dynamic DB table.