Top Description Methods
com.mysql.cj.xdevapi

public Interface InsertStatement

extends Statement<InsertStatement, InsertResult>
Known Direct Implementers
com.mysql.cj.xdevapi.InsertStatementImpl
Imports
java.util.Arrays, .List

A statement INSERTing new row(s) into a table.

Method Summary

Modifier and TypeMethod and Description
public InsertStatement
values(List<Object>
list of values to insert
values
)

Add a row (sequence of values) to this statement.

public default InsertStatement
values(Object...
one or more values to insert
values
)

Add a row (sequence of values) to this statement.

Inherited from com.mysql.cj.xdevapi.Statement:
bindbindbindbindclearBindingsexecuteexecuteAsync

Method Detail

valuesback to summary
public InsertStatement values(List<Object> values)

Add a row (sequence of values) to this statement.

Parameters
values:List<Object>

list of values to insert

Returns:InsertStatement

InsertStatement

valuesback to summary
public default InsertStatement values(Object... values)

Add a row (sequence of values) to this statement.

Parameters
values:Object[]

one or more values to insert

Returns:InsertStatement

InsertStatement