February 2014
Beginner
1248 pages
62h 25m
English
• Package java.sql contains classes and interfaces for accessing relational databases in Java.
• A Connection object (p. 1065) manages the connection between a Java program and a database. Connection objects enable programs to create SQL statements that access data.
• DriverManager (p. 1065) method getConnection (p. 1065) attempts to connect to a database at a URL that specifies the protocol for communication, the subprotocol (p. 1065) for communication and the database name.
• Connection method createStatement (p. 1066) creates a Statement object (p. 1066), which can be used to submit SQL statements to the database.
• Statement method executeQuery (p. 1066) executes a query and returns a ...
Read now
Unlock full access