PreparedStatement is a pre compiled statement but where it's
pre compiled ?
Answer Posted / aravind
Hi,
in prepared statement when u mention the query that time
only statement will be internaly sent to DB and checks for
the query syntax, so when u execute it directly executes
the statement.
PreparedStatement pstmt = conn.prepareStatement("insert
into table (column2) values ("My Value") where id = 1000");
//pstmt is already compiled
pstmt.execute();
| Is This Answer Correct ? | 5 Yes | 7 No |
Post New Answer View All Answers
Which Java and java.sql data types map to my specific database types?
What are temp tables ?
Give an example for execution of sql statement.
Where can I find info, frameworks and example source for writing a JDBC driver?
What is two-phase commit in the database?
How do java applications access the database using jdbc?
How vendor Naming registry supports JNDI?
What is the function of drivermanager class?
What is resultset in jdbc with example?
What is the fastest type of JDBC driver?
Write an sql to find all records having all numeric characters in a field ?
When does the result for an sql statement return null?
What is jdbc connection string?
Does the database server have to be running Java or have Java support in order for my remote JDBC client app to access the database?
What is jdbc architecture?