• 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
Marshal
Pie
Posts: 22097
88
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic