Chapter 14 Flashcards
1
Q
What is JDBC
A
Java database connectivity provides standard library for accessing relational databases. Its a standardize way to connect with database.
2
Q
What is the package for JDBC
A
java.sql
3
Q
What is DSN
A
Data source name
4
Q
What is UDSN
A
User data source name
5
Q
What is SDSN
A
System data source name
6
Q
What are basic steps for using JDBC
A
1- Import required packages 2- Load driver 3- Define connection URL 4- Establish connection 5- Create a statement object 6- Execute query or DML 7- Process results 8- Close connection
7
Q
What is ODBC
A
open database connectivity is an open standard API for accessing a database by Microsoft.
8
Q
What is JDBC ODBC bridge
A
Using them together
9
Q
Does result set have getter method
A
Yes
10
Q
Does opened database connection treat as garbage collection
A
No. We should close them by ourselves