year

open fun <T> year(expr: Expression<T>, queryBuilder: QueryBuilder)

SQL function that extracts the year field from a given date.

Parameters

expr

Expression to extract the year from.

queryBuilder

Query builder to append the SQL function to.