JDBC class load

SQL Server JDBC Class Loading Method

Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver").newInstance();

How to load a JDBC class in Oracle

Class.forName("oracle.jdbc.driver.OracleDriver");

How to load a JDBC class in MySQL

Class.forName("com.mysql.jdbc.Driver").newInstance();

How to load a JDBC class in PostgresQL

 Class.forName("org.postgresql.Driver");

Recommended Posts

JDBC class load
11th class: Class
Anonymous class (anonymous class)
Class method
ObjectMapper class
ArrayList class