update

fun update(vararg params: Any?): Long

Executes a statement that changes rows without returning any — INSERT, UPDATE, DELETE.

A statement with a RETURNING clause produces rows and belongs to the fetch* family instead.

Return

The number of rows affected.

Parameters

params

Values for $1, $2, … in declaration order.

Throws

UNEXPECTED_RESULT if the statement returned rows.