my dog learned polymorphism*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 18914
    
  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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC and ODBC