getColumnIndex

fun getColumnIndex(columnName: String): Int

Finds the zero-based index of the column with the specified columnName.

If multiple columns share the same name, this returns the index of the first occurrence.

Return

The zero-based index of the column.

Parameters

columnName

The name of the column.

Throws

if no column with the given name exists.