There are 3 types of Statements, as given below:
Statement:
It can be used for general-purpose access to the database. It is useful when you are using static SQL statements at runtime.
PreparedStatement:
It can be used when you plan to use the same SQL statement many times. The PreparedStatement interface accepts input parameters at runtime.
CallableStatement:
CallableStatement can be used when you want to access database stored procedures. - See more at: http://java2novice.com/jdbc/statement-types/#sthash.871NQImH.dpuf
No comments:
Post a Comment