首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

JAVA 中的SQL实施方法

2012-11-17 
JAVA 中的SQL执行方法来源:http://www.coderanch.com/t/301594/JDBC/java/Difference-between-execute-exe

JAVA 中的SQL执行方法
来源:http://www.coderanch.com/t/301594/JDBC/java/Difference-between-execute-executeQuery-executeUpdate

boolean execute()Executes the SQL statement in this PreparedStatement object, which may be any kind of SQL statement.ResultSet executeQuery()Executes the SQL query in this PreparedStatement object and returns the ResultSet object generated by the query.int executeUpdate()Executes the SQL statement in this PreparedStatement object, which must be an SQL INSERT, UPDATE or DELETE statement; or an SQL statement that returns nothing, such as a DDL statement.

热点排行