1 grid.delete
Release 2017.3
Tag available since version 2017.3.
Sends a delete instruction to all nodes in the grid.
<grid.delete
name='name'
table='table'
>
<where /> !
</grid.delete>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aname | string | Name of the grid | |||
Atable | string | Table name where the rows will be deleted. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Ewhere | where | Where condition applied to DELETE statement |
Example
The sample is based on a temporary table with a set of rows to be selected on the work directory. The insert on grid is obtained from this temporary table and
the node is assigned using the hash algorithm based on the value for the provided key column.
Copy
<xsql-script> <body> <grid.delete name='grid_demo' table='t_person' > <where> person_name = 'OLIVIA' </where> </grid.delete> </body> </xsql-script>