<< Click to Display Table of Contents >>

ExecuteUpdate

쿼리문을 실행하고, 테이블에서 변경된 행 수를 가져옵니다.

Prototype

integer ExecuteUpdate()

Example

function OZJSPreparedStatementSample(){

   var con = OZCreator.GetBuiltInObject(OZBuiltInObject.DBCONNECTION);

   con.SetAlias("ozcar");

   con.Connect(true);

   var pstmt = con.PrepareStatement("select * from car where Maker = ? ");

   pstmt.SetParameter(1, "HYUNDAI");

   var RowCnt = pstmt.ExecuteUpdate();

   _DEBUG(RowCnt);

   pstmt.Close();

}