delete (dynamic command)

Description

Using a dynamic command, delete removes a row from a table.

Syntax

delete [[database.]owner.]{table_name | view_name} 
 [where search_conditions]

NoteAny valid object in the catalog can be substituted for table_name or view_name.

Parameters

where

is a standard where clause.

search_conditions

is a valid where clause that sets the conditions for the rows that are retrieved. A search condition can include column names, constants, joins, the keywords is null, is not null, or, like, and, or any combination of these items.

Examples

Example 1

delete from tablea 
 where col1 = ”test”

Usage