Re: how to practice JDBC programming?
- From: Jon Martin Solaas <jon.martin.solaas@xxxxxxxxx>
- Date: Mon, 13 Mar 2006 07:38:15 +0100
Leo wrote:
Dear All,
I am reading a book to learn JDBC. I hope to have hands on practice. But it seems requires database installed, etc. I do have a Oracle expression version installed in my Window XP. But I have never used it.
Do I need to learn Oracle first? Like creating tables, etc. Then I may start to practice JDBC. It seems the learning curve is too long. Any other straight ways to learn it?
No, not really. It's like you really, really want to learn to drive a car, but without really have to ever get inside one.
Oracle is one of the top database systems out there, and Oracle XE is supposed to be very, very easy to use. It has a web interface for administration, so it's very easy to create tables, schemas and stuff. If I'm not mistaken, a sample schema is also installed, (maybe it's an install-option), and for practicing purposes, like jdbc training, it'd be very convenient.
That said, there exist simpler and smaller databases than Oracle, like HSQLDB, written entirely in Java, or PostgreSQL and MySQL which both have administration tools letting you create tables without using SQL create statements.
The easiest way would probably be to create the database in MS Access, if it is familiar to you, and use the odbc-jdbc bridge included in the JDK to access it. This is far from what I'd recommend for any real application, but for training purposes it'd work just fine.
Finally, JDBC isn't an abstraction layer on top of SQL, so basically you can't do much in JDBC, except making the db connection, if you don't know how to do it in SQL first. Answering your question "Do I need to learn Oracle?" I'd say you don't have to learn Oralce, but if you're not comfortable with SQL you should learn that first. And it's much better to get the basic SQL knowledge interacting with the dababase directly, rather than through JDBC, so that you always know that errors stem form the database and don't have to figure out if it's jdbc-related or database-related.
.
- Follow-Ups:
- Re: how to practice JDBC programming?
- From: jcsnippets.atspace.com
- Re: how to practice JDBC programming?
- From: Roedy Green
- Re: how to practice JDBC programming?
- Prev by Date: Re: book on oop concepts
- Next by Date: Re: error porting JNI programs from Windows to Sparc Solaris 10
- Previous by thread: error porting JNI programs from Windows to Sparc Solaris 10
- Next by thread: Re: how to practice JDBC programming?
- Index(es):
Relevant Pages
|