executeUpdate 메서드 (java.lang.String)

주어진 SQL 문장을 실행하며, 이 문은 , , INSERTUPDATE, 또는 MERGE 문장일 DELETE수도 있고; 아무것도 반환하지 않는 SQL 문장(예: SQL DDL 문장)일 수도 있습니다.

구문

public final int executeUpdate(java.lang.String sql)

매개 변수

sql

SQL 문이 포함된 문자열입니다.

반환 값

영향을 받는 행 수를 나타내는 int이며, DDL 문을 사용하는 경우에는 0입니다.

예외

SQLServerException

설명

이 executeUpdate 메서드는 java.sql.PreparedStatement 인터페이스의 executeUpdate 메서드에 의해 지정됩니다.

이 메서드를 호출하면 개체를 만들 때 SQLServerPreparedStatement 개체에 대한 SQL 문이 지정되므로 예외가 발생합니다.

참고 항목

executeUpdate 메서드(SQLServerPreparedStatement)

SQLServerPreparedStatement 멤버

SQLServerPreparedStatement 클래스