Java Reference
In-Depth Information
In this section, we will be using a custom database schema, in order to create
the schema, we need to execute an SQL script that will create the schema and
populate some of its tables. In order to do this, we need to go to the
Services
window, right-click on
JavaDB
, then select
Create Database...
.
We then need to add the database information in the
Create Java DB Database
wizard.
At this point, we can open the SQL script by going to
File | Open File...
, then
navigating to its location on our disk and opening it.
The file name of our script is
create_populate_tables.sql
, it is
included as part of the source bundle for this chapter.