insertSelectStatement
fun <T : Table> T.insertSelectStatement(selectQuery: AbstractQuery<*>, columns: List<Column<*>> = defaultColumnsForInsertSelect(), isIgnore: Boolean = false): InsertSelectStatement(source)
Deprecated
Use the new `buildStatement` API in Exposed.
Replace with
import org.jetbrains.exposed.v1.core.statements.buildStatement
Content copied to clipboard
buildStatement { if (isIgnore) insertIgnore(selectQuery, columns) else insert(selectQuery, columns) }Content copied to clipboard
Adapted from org.jetbrains.exposed.v1.jdbc.insert.