English | 简体中文

api-docs / org.ktorm.global / selectDistinct

selectDistinct

fun BaseTable<*>.selectDistinct(
    columns: Collection<ColumnDeclaring<*>>
): Query
(source code)

Deprecated: ktorm-global will be removed in the future, please migrate to the standard API.


fun BaseTable<*>.selectDistinct(
    vararg columns: ColumnDeclaring<*>
): Query
(source code)

Deprecated: ktorm-global will be removed in the future, please migrate to the standard API.

Create a query object, selecting the specific columns or expressions from this table distinctly.

Note that the specific columns can be empty, that means select distinct * in SQL.