Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


23.18.4 delete_row

Purpose

Deletes a row.

Synopsis

virtual int delete_row (

buf);

const byte *

buf ;

Description

This is the delete_row method.

buf will contain a copy of the row to be deleted. The server will call this right after the current row has been called (from either a previous rnd_next() or index call). If you keep a pointer to the last row or can access a primary key it will make doing the deletion quite a bit easier. Keep in mind that the server does not guarantee consecutive deletions. ORDER BY clauses can be used.

Called in sql_acl.cc and sql_udf.cc to manage internal table information. Called in sql_delete.cc, sql_insert.cc, and sql_select.cc. In sql_select it is used for removing duplicates, while in insert it is used for REPLACE calls.

Parameters

  • buf

Return Values

There are no return values.

Usage

This section is yet to be written.

Default Implementation

{ return HA_ERR_WRONG_COMMAND; } 

User Comments
Sign Up Login You must be logged in to post a comment.