February 2014
Beginner
1248 pages
62h 25m
English
You’ll now populate the database with sample data using the books.sql script that’s provided with this chapter’s examples. To do so, perform the following steps:
1. Select File > Open File... to display the Open dialog.
2. Navigate to this chapter’s examples folder, select books.sql and click Open.
3. In NetBeans, right click in the SQL script and select Run File.
4. In the Select Database Connection dialog, select the JDBC URL for the database you created in Section 29.3.2 and click OK.
The IDE will connect to the database and run the SQL script to populate the database. The SQL script attempts to remove the database’s tables if they already exist. If they do not, you’ll receive error messages ...
Read now
Unlock full access