Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.2.1 |  CUBRID 8.3.0 |  CUBRID 8.3.1 |  CUBRID 8.4.0 |  CUBRID 8.4.1 | 

executeInsert

Description

This function is used to return the CUBRIDOID corresponding to a new tuple (row) inserted by the SQL statement, insertStmt.

Syntax

CUBRIDOID executeInsert(String insertStmt)

Return Value
  • CUBRIDOID of the added row
Example

String sql = "insert into testable(a) values (1)"

 

CUBRIDStatement stmt = (CUBRIDStatement) con.createStatement();

CUBRIDOID oid = stmt.executeInsert(sql);