Removes a row from a table (cursor event). The affected row must be made current by a read cursor.
Transact-SQL Syntax
delete [from][[database.]owner.]{table_name | view_name} where current of cursor_name
ODBC Syntax
DELETE FROM table_name WHERE CURRENT OF cursor_name
The where clause is not constructed. Open Server appends the equivalent of where current of cursor read_cursor_name.
The cursor can be reused multiple times before it is deallocated.
When the DirectConnect server calls srv_senddone to mark the completion of the delete command, the number of affected rows must be indicated. Normally, the row count is 1.
Any valid object in the catalog can be substituted for table_name or view_name.