次の方法で共有


executeUpdate () メソッド

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

構文

public int executeUpdate()

戻り値

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

例外

SQLServerException

解説

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

参照

リファレンス

SQLServerPreparedStatement クラス

概念

executeUpdate メソッド (ISQLServerPreparedStatement)
SQLServerPreparedStatement のメンバー