Class TableUpdateStatement
Represents a chaining table update statement.
Inheritance
System.Object
TableUpdateStatement
Namespace: MySqlX.XDevAPI.Relational
Assembly: MySql.Data.dll
Version: 9.2.0
Syntax
public class TableUpdateStatement : FilterableStatement<TableUpdateStatement, Table, Result, string>
Methods
Execute()
Executes the update statement.
Declaration
public override Result Execute()
Returns
Overrides
MySqlX.XDevAPI.Common.BaseStatement<MySqlX.XDevAPI.Common.Result, System.String>.Execute()
OrderBy(String[])
Sets user-defined sorting criteria for the operation. The strings use normal SQL syntax like "order ASC" or "pages DESC, age ASC".
Declaration
public TableUpdateStatement OrderBy(params string[] order)
Parameters
Type | Name | Description |
---|---|---|
System. |
order | The order criteria. |
Returns
Type | Description |
---|---|
Table |
A generic object that represents the implementing statement type. |
Set(String, Object)
Column and value to be updated.
Declaration
public TableUpdateStatement Set(string tableField, object value)
Parameters
Type | Name | Description |
---|---|---|
System. |
tableField | Column name. |
System. |
value | Value to be updated. |
Returns
Type | Description |
---|---|
Table |
This same Table |