aspose file tools
The moose likes JDBC and the fly likes JDBC basics Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "JDBC basics" Watch "JDBC basics" New topic
Author

JDBC basics

rajaraman navaneethan
Ranch Hand

Joined: Feb 26, 2005
Posts: 85
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?


class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
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,
regards,
raja
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
Hello,
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.

Regards
Shrinivas
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26138
    
  66

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


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JDBC basics
 
Similar Threads
addBatch - help/ideas?
interfaces
what is difference between JDBC1 and JDBC2 ?
Where is the implemetation for methods in HttpServletRequest & HttpServletResponse
what is the difference between jdbc 2.0 and jdbc3.0 version