confussion about ODBC
am 04.07.2006 19:55:37 von sumit dagar
------=_Part_66005_27044244.1152035737370
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
sir,
i am a amatuer programmer. i am building a application which accesses mySQL
database. i am having difficulty how to connect to the databse. the probem
is i cant figure out what exactly are the utilities of JDBC and ODBC and how
are they different.
my skill sets:jsp,html,java,
kindly reply asap..
thanking you.
Sumit Dagar
------=_Part_66005_27044244.1152035737370--
Re: confussion about ODBC
am 04.07.2006 20:16:17 von Martin.Evans
On Tue, 2006-07-04 at 10:55 -0700, sumit dagar wrote:
> sir,
> i am a amatuer programmer. i am building a application which accesses mySQL
> database. i am having difficulty how to connect to the databse. the probem
> is i cant figure out what exactly are the utilities of JDBC and ODBC and how
> are they different.
> my skill sets:jsp,html,java,
>
> kindly reply asap..
>
> thanking you.
> Sumit Dagar
Hi,
You are not really giving us much to go on so we'll have to guess.
MySQL has both ODBC and JDBC drivers. I've never used the JDBC
driver but I have used the ODBC driver.
Given your "skill sets" include jsp and java I'm guessing you'll
get along with the JDBC driver most easily.
You can find a JDBC driver for MySQL:
http://dev.mysql.com/downloads/connector/j/3.1.html
ODBC and JDBC are just different ways to access MySQL. JDBC is
a Java only interface (although there are gateways which convert
ODBC to JDBC and vice versa) and ODBC is predominantly a C API.
On top of that there are Perl, Python, Rexx, PHP etc etc interfaces
to databases which use the MySQL ODBC driver. These days you might
as well pick the language and interface you are happiest with using
as there are loads to choose from (your target platform for the
application may have a say here).
As to how ODBC and JDBC differ - they are chalk and cheese in some
ways and rather similar in others however, they both boil down
to performing inserts/updates/deletes/selects/metadata_functions
(and possibly create/drop etc).
Perhaps you'd do better downloading
the JDBC driver given you have some java experience, try to use it
and posting on a mysql/jdbc list if you have a specific problem.
Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com
--
MySQL ODBC Mailing List
For list archives: http://lists.mysql.com/myodbc
To unsubscribe: http://lists.mysql.com/myodbc?unsub=gcdmo-myodbc@m.gmane.org