Top Description Methods
com.mysql.cj.xdevapi

public Interface DeleteStatement

extends Statement<DeleteStatement, Result>
Known Direct Implementers
com.mysql.cj.xdevapi.DeleteStatementImpl

A statement to delete rows from a table.

Method Summary

Modifier and TypeMethod and Description
public DeleteStatement
limit(long
limit
numberOfRows
)

Add/replace the row limit for the deletion.

public DeleteStatement
orderBy(String...
sort expression
sortFields
)

Add/replace the order by specification for the deletion.

public DeleteStatement
where(String
condition expression
searchCondition
)

Add/replace the filter for the deletion.

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

Method Detail

limitback to summary
public DeleteStatement limit(long numberOfRows)

Add/replace the row limit for the deletion.

Parameters
numberOfRows:long

limit

Returns:DeleteStatement

DeleteStatement

orderByback to summary
public DeleteStatement orderBy(String... sortFields)

Add/replace the order by specification for the deletion.

Parameters
sortFields:String[]

sort expression

Returns:DeleteStatement

DeleteStatement

whereback to summary
public DeleteStatement where(String searchCondition)

Add/replace the filter for the deletion.

Parameters
searchCondition:String

condition expression

Returns:DeleteStatement

DeleteStatement