What is PreparedStatement?

Answer Posted / sowmya

prepared statement is the type of statement used to
interact with database.
To avoid syntactical complexities its the better approach
(eg:double quotes used with query strings)
we can insert many rows using single prepared statement.
eg:String str="insert into tab values("?,?,?")";
PreparedStatement stmt=con.prepareStatement(str);

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a lock in jdbc?

540


How do java applications access the database using jdbc?

526


Name the types of jdbc drivers.

546


What is jdbc databasemetadata interface?

545


What are the different types of statements in jdbc?

486






Where jdbc drivermanager class is used?

522


What is a jdbc url?

461


How do I connect to jdbc?

518


What is a java driver?

500


What class.forname will do while loading drivers of jdbc?

494


What does the jdbc resultsetmetadata interface?

548


Is jpa faster than jdbc?

501


What are the three parts of a jdbc url?

570


What is the JDBC syntax for using a literal or variable in a standard Statement?

559


What is com mysql jdbc driver?

498