Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JDBC and Relational Databases and the fly likes JDBC basics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC basics" Watch "JDBC basics" New topic

JDBC basics

rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 86
dear friends,
i am new to JDBC,just trying out with my steps in JDBC.can any one of u explain me how the following lines work?

Connection con=DriverManager.getConnection("jdbc dbc sn");
Statement st=con.createStatement();
Resultset rs=st.executeQuery("select * from table");

i want to know about the interfaces,classes and where the methods of these interfaces are implemented.awaiting ur reply,
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
javadocs is my best bet.
Shrinivas Mujumdar
Ranch Hand

Joined: Aug 27, 2004
Posts: 328
You will get the details of these methods in java doc. but these methods are implemented in Driver you select(especially the Interface methods).classes used are concrete classes so implementation is with themselves.

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32819

Please don't post the same question multiple times. Please continue discussion in this thread

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: JDBC basics
It's not a secret anymore!