
1.204 Lecture 4
JDBC
Code examples from JDBC API Tutorial and Reference
JDBC API
โขPackage (library) of classes and methods to connect from a
Java application to DBMS execute SQL statements and
,
execute SQL statements and
retrieve results
โSQL syntax primarily based on SQL-92 standard
โStandard set of error codes
โStandard way to connect and log on to DBMS
โStandard representation of data types
โStandard methods for data type conversions
โStandard methods to send SQL queries and receive result sets
JDBC has level 1-4 functionality to deal with simple and
sophisticated interfaces.
โIt can interface to files and other data sources as well
1