Delete

Kalipso - Form - Actions - Actions Description - Group Database - Delete

Deletes one or more records from the specified Database Table.

Action available for the following operating systems:

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.

Usage

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

Example 1

Table

Products

Where

1=1

Result:

Products

Code

Name

Stock

empty

empty

empty

Example 2

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".

Last updated