klyn.databases.sql.Statement.addBatch
method
public addBatch(sql as String) as Void throws SQLException
Description

Adds one SQL statement to the batch.

import klyn.databases.sql

statement.addBatch("insert into logs(message) values ('ok')")
Throws
  • SQLException if the SQL operation cannot be completed because parameters, state, protocol data, or the database response are invalid.