Top "Jdbc" questions

JDBC (Java DataBase Connectivity) is the base API which enables interacting with SQL database servers by executing SQL statements using the Java programming language.

Create a jTDS connection string

my sql server instance name is MYPC\SQLEXPRESS and I'm trying to create a jTDS connection string to connect to …

java jdbc connection-string jtds
Spring-Boot: How do I set JDBC pool properties like maximum number of connections?

Spring-Boot is a pretty awesome tool, but the documentation is a bit sparse when it comes to more advanced configuration. …

java spring jdbc spring-boot tomcat-jdbc
What is the actual use of Class.forName("oracle.jdbc.driver.OracleDriver") while connecting to a database?

What will the command Class.forName("oracle.jdbc.driver.OracleDriver") exactly do while connecting to a Oracle database? Is there …

java jdbc
Cannot issue data manipulation statements with executeQuery()

In MySQL I have two tables, tableA and tableB. I am trying to execute two queries: executeQuery(query1) executeQuery(query2) …

java mysql jdbc
java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Exception occurring. Why?

I have created an MS Access database and assigned a DSN to it. I want to access it through my …

java ms-access jdbc jdbc-odbc
How to connect SQLite with Java?

I am using one simple code to access the SQLite database from Java application . My code is import java.sql.…

java sqlite jdbc classpath
How to establish a connection pool in JDBC?

Can anybody provide examples or links on how to establish a JDBC connection pool? From searching google I see many …

java jdbc connection-pooling
How to execute IN() SQL queries with Spring's JDBCTemplate effectivly?

I was wondering if there is a more elegant way to do IN() queries with Spring's JDBCTemplate. Currently I do …

java sql spring jdbc jdbctemplate
ResultSet exception - before start of result set

I'm having trouble getting data from a ResultSet object. Here is my code: String sql = "SELECT type FROM node WHERE …

java jdbc