O'Reilly logo

Oracle Database 10g: A Beginner's Guide by Michael Corey, Michael Abbey, Ian Abramson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CRITICAL SKILL 7.6

Use JDBC

JDBC is based upon an industry standard. Java packages are a method of organizing related Java classes. They are different than PL/SQL packages. JDBC contains two types of packages. The standard JDBC packages work with different database vendors. Vendor-specific packages address vendor-specific functionality. Oracle provides an additional set of packages for JDBC that support Oracle specific features. To use JDBC, at least the standard JDBC packages need to be accessible within your program. An import statement defines where Java can find packages. Additional Oracle packages can be used to leverage Oracle data types (oracle.sql) and Oracle specific (oracle.jdbc) database features.

import java.sql.*; import oracle.sql.*; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required