Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic Questions in JDBC

 
amit sanghai
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
R K Singh
Ranch Hand
Posts: 5384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://developer.java.sun.com/developer/onlineTraining/Database/JDBC20Intro/JDBC20.html
one answer to all questions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic