This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes JDBC and ODBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC and ODBC" Watch "JDBC and ODBC" New topic
Author

JDBC and ODBC

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
what is the difference between JDBC and ODBC? which one is better?
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18546
    
  40

Hendra Kurniawan wrote:what is the difference between JDBC and ODBC? which one is better?


The ODBC API is for the C language. The JDBC API is for the Java language. ODBC came first, hence, some early usage of JDBC were actually going though a bridge to ODBC. Asking which is "better" doesn't really make sense, as that is like asking which language is better.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
Oh, so it's just a matter of language? I thought ODBC and JDBC are not language dependent, but then again J stands for Java in JDBC, oh well, that clarifies everything. thanks
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JDBC and ODBC
 
Similar Threads
DAO Pattern
DOA as session bean ?
how to connect jsp
Need Help on DAO
inserting values from arraylist to the database