본문 바로가기

Development/Java

JDBC Statement, PreparedStatement, CallableStatement 차이

728x90
InterfacesRecommended Use
StatementUse for general-purpose access to your database. Useful when you are using static SQL statements at runtime. The Statement interface cannot accept parameters.
PreparedStatementUse when you plan to use the SQL statements many times. The PreparedStatement interface accepts input parameters at runtime.
CallableStatementUse when you want to access database stored procedures. The CallableStatement interface can also accept runtime input parameters.

참고 : http://www.tutorialspoint.com/jdbc/jdbc-statements.htm


반응형