toScalar

fun <T : Any> ResultSet.toScalar(): T?

Get value of the first column of the first row, then close ResultSet

Return

null if there is no rows

Throws

from JDBC