Java Reference
In-Depth Information
After deploying our application and opening our page in the browser, we can see the
results of our SQL
UPDATE
statement.
As we can see, the zip codes for all rows we inserted earlier were modified by our
SQL
UPDATE
statement.
Deleting database data
The
<sql:update>
tag can be used to delete data from the database. This can be
done by placing an SQL
DELETE
statement inside its body. With NetBeans, we can
simply drag the
DB Delete
item from the NetBeans palette into our page.
After doing so, we are asked for the usual additional information.