executeInsert

Description

Returns the CUBRIDOID corresponding to a new tuple (row) inserted by the SQL statement, insertStmt.

Syntax

CUBRIDOID executeInsert(String insertStmt)

Return Value
Example

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

 

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

CUBRIDOID oid = stmt.executeInsert(sql);