Runs the given SQL statement, which can return multiple results.
public final boolean execute(java.lang.String sql)
參數
sql
A String that contains an SQL statement.
傳回值
true if the statement returns a result set. false if it returns an update count or no result.
例外狀況
備註
This execute method is specified by the execute method in the java.sql.Statement interface.
This method overrides the execute method that is found in the SQLServerStatement class.
Calling this method will result in an exception since the SQL statement for the SQLServerPreparedStatement object is specified when the object is created.
另請參閱
參考
SQLServerPreparedStatement Class
概念
execute Method (SQLServerPreparedStatement)
SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members