executeUpdate () メソッド

JDBC ドライバーのダウンロード

SQLServerPreparedStatement オブジェクトの SQL ステートメントを実行します。SQL ステートメントは、SQL INSERT、UPDATE、MERGE、または DELETE ステートメントであるか、DDL ステートメントなどのような何も返さない SQL ステートメントであることが必要です。

構文

  
public int executeUpdate()  

戻り値

影響を受けた行数を示す int です。DDL ステートメントを使用している場合は 0 です。

例外

SQLServerException

解説

この executeUpdate メソッドは、java.sql.PreparedStatement インターフェイスの executeUpdate メソッドで規定されています。

参照

executeUpdate メソッド (SQLServerPreparedStatement)
SQLServerPreparedStatement のメンバー
SQLServerPreparedStatement クラス