GeeCON Prague 2014*
The moose likes JDBC and the fly likes Basic Questions in JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Basic Questions in JDBC" Watch "Basic Questions in JDBC" New topic
Author

Basic Questions in JDBC

amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231
Hi everybody,

Q1) What are the 4 drivers available in JDBC? Under what circumstances are each of them used?

Q2) How do you know about drivers and database information?
Q3) If the data retrieved using JDBC is truncated how can you know how much data is truncated?
Q4) How will you perform transaction using JDBC?
Mini Ramachandran
Greenhorn

Joined: Jan 11, 2001
Posts: 17
Answer to your Qn.1: http://www.sybase.com/detail/1,3693,1009796,00.html
The documentation says about the 4 types of drivers...
Thanks.
David Junta
Ranch Hand

Joined: Dec 10, 2000
Posts: 86
Is there a way to practice with JDBC if I don't have a relational database? I'm just learning java, and am not sure whether I'll need to order a personal Oracle database or if there are other cheaper ways to learn it.
Any help would be appreciated.
Thanks!
amit sanghai
Ranch Hand

Joined: Dec 05, 2000
Posts: 231

Thanks Mini. Can anybody give answers to the other three questions.
Hi David,
You do not need to use only Relational DBMS. You can use Microsoft Access or any other DBMS you have.
Bye.
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
There are plenty of free relational databases available on the internet. Try mysql.com for one.
Q2) How do you know about drivers and database information?
I read books and study.
Q3) If the data retrieved using JDBC is truncated how can you know how much data is truncated?
The data retrieved should not be truncated.
Q4) How will you perform transaction using JDBC?
Commit and rollback
Did you ever think that perhaps you may wish to buy a book instead of relying on asking incredibly basic questions?


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
R K Singh
Ranch Hand

Joined: Oct 15, 2001
Posts: 5371
http://developer.java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html
one answer to all questions


"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
 
GeeCON Prague 2014
 
subject: Basic Questions in JDBC