• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC and ODBC

 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between JDBC and ODBC? which one is better?
 
Henry Wong
author
Sheriff
Posts: 22641
111
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!