Java Reference
In-Depth Information
Inserting database data
To execute an
INSERT
statement, we can drag the
DB Insert
item from the NetBeans
palette into our page.
After dropping the
DB Insert
item into our page, we are prompted for additional
information.
The value of the
Variable Name
field is a variable of type
java.lang.Integer
that
will hold the number of rows that were inserted into the database after the
INSERT
statement was executed.
The
Scope
field must contain the scope where the value of the
Variable Name
field
will be stored.