Documentation Home
MySQL Internals Manual

23.18.4 delete_row


Deletes a row.


virtual int delete_row (


const byte *

buf ;


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 and to manage internal table information. Called in,, and In sql_select it is used for removing duplicates, while in insert it is used for REPLACE calls.


  • buf

Return Values

There are no return values.


This section is yet to be written.

Default Implementation


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