preparedstatement p= new preparedstatement
is it possible ?

Answer Posted / venkatesh

Correction. Syntax should be....

PreparedStatement ps = conn.prepareStatement("Query");

Thanks.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I use the JDBC API to access a desktop database like Microsoft Access over the network?

532


Which is better jpa or jdbc?

504


Under what circumstances, that all four drivers are used?

1906


What is the role of jdbc drivermanager class?

567


What is metadata in programming?

527






How many jdbc driver types are there?

480


Why do I get UnsatisfiedLinkError when I try to use my JDBC driver?

567


What is executequery in java?

493


How can I get or redirect the log used by DriverManager and JDBC drivers?

517


What are the benefits of PreparedStatement over Statement?

527


What is jdbc odbc in java?

531


Why isn't the java.sql.DriverManager class being found?

569


Which database is used for java?

528


How many types of statements are there in jdbc?

493


Does JDBC support stored procedures?

560