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


MySQL Internals Manual  /  ...  /  Implementing the index_prev() Method

22.16.12 Implementing the index_prev() Method

The [custom-engine.html#custom-engine-api-reference-index_prev index_prev()] method is used for reverse index scanning:

 int ha_foo::index_prev(byte * buf) 

The *buf parameter is populated with the row that corresponds to the previous matching key value according to the internal cursor set by the storage engine during operations such as index_read() and index_last().


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