File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Question about Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Question about "Java Cookbook: Solutions and Examples for Java Developers"" Watch "Question about "Java Cookbook: Solutions and Examples for Java Developers"" New topic
Author

Question about "Java Cookbook: Solutions and Examples for Java Developers"

Rob Earls
Greenhorn

Joined: Sep 19, 2001
Posts: 12
Does it have any solid examples of JDBC coding. I seem to be struggling with it at the moment.
Johannes de Jong
tumbleweed
Bartender

Joined: Jan 27, 2001
Posts: 5089
According to the index there is a whole chapter on Database Access
Good luck with your JDBC
[This message has been edited by Johannes de Jong (edited September 25, 2001).]
Siddalinga Murthy
Greenhorn

Joined: Sep 17, 2001
Posts: 10
import java.sql.Connection;
import java.sql.Statement;
import java.sql.DriverManager;
import java.sql.ResultSet;
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
java.sql.Connection JDBCconnection= DriverManager.getConnection(DBConstants.DB_URL, DBConstants.DB_User, DBConstants.DB_Password);
}
Statement statement1=JDBCconnection.createStatement();
ResultSet rs=statement1.executeQuery("SQL QUERY")
rs.next();
John Sinues
Ranch Hand

Joined: Feb 21, 2000
Posts: 52
Also try http://developer.java.sun.com/developer/onlineTraining/Database/JDBC20Intro/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question about "Java Cookbook: Solutions and Examples for Java Developers"
 
Similar Threads
Apache Not able to get html files & GIF files placed in the Tomcat
CORBA example?
Info required for voice communication
opinion poll: readability
SCWCD Study Notes