What is Prepared Statements and How many types of Prepared Statements are there?

Showing Answers 1 - 1 of 1 Answers

agsuvidha

  • Aug 14th, 2007
 

Prepared statements are used whenever your pl/sql depends on the user input.
suppose you want to insert some values in the table that you are taking from the text boxes in an applet
connection con;
PreparedStatement stat=con.prepareStatement("insert into table values("?,?");
stat.setString(1,txt1.getText());
stat.setString(2,txt2.getText());
stat.executeUpdate();


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions