|
| | |
|
Deletes one or more records from the specified Database Table.
Parameters
|
Table
|
|
Database Table where to delete the records from. |
|
|
Where <Kalipso Filter> or <string> |
|
Condition to specify which records should be deleted. Check Expressions chapter for more information about Kalipso Filter and String expressions.
If this parameter is empty, an error may occur, if you have selected Prevent the execution of Update/Delete Statemens without Where clause in "Online" or "Offline", defined in the Project Properties. To bypass this safety feature without unchecking the options check Example 1.
|
|
This function is intended to be similar Delete operation that exists in every SQL database, and is used to database tables according some conditions.
Consider the following Database Table:
Products |
Code |
Name |
Stock |
1 |
Coca Cola |
100 |
2 |
Pepsi Cola |
200 |
3 |
Pork Chops |
300 |
Consider that column Code is Numeric, column Name is String and column Stock is Numeric.
|
Example 1
|
|
Example 2 |
Result:
Products |
Code |
Name |
Stock |
empty |
|
|
Table |
Products |
Where |
FIELD(Products,Name) LIKE "%Cola" |
Result:
Products |
Code |
Name |
Stock |
003 |
Pork Chops |
300 |
|
|
- When you specify more than one condition in Where parameter, the operator used between the conditions is "AND" or "OR".
|
Updated: 3/21/2018 5:46 PM
|
| |
|
|
|