View RSS Feed

JDBC

Java Database Connectivity (JDBC) examples. SQL with Java.

  1. Establishing a Connection

    by , 04-27-2012 at 07:03 PM
    First, you need to establish a connection with the data source you want to use. A data source can be a DBMS, a legacy file system, or some other source of data with a corresponding JDBC driver. Typically, a JDBC application connects to a target data source using one of two classes:

    • DriverManager: This fully implemented class connects an application to a data source, which is specified by a database URL. When this class first attempts to establish a connection, it automatically
    ...