ha_innobase::rnd_next

/*****************************************************************//**
Reads the next row in a table scan (also used to read the FIRST row
in a table scan).
@return 0, HA_ERR_END_OF_FILE, or error number */
UNIV_INTERN
int
ha_innobase::rnd_next(
/*==================*/
uchar* buf) /*!< in/out: returns the row in this buffer,
in MySQL format */
{
int error; DBUG_ENTER("rnd_next");
ha_statistic_increment(&SSV::ha_read_rnd_next_count); if (start_of_scan) {
error = index_first(buf); if (error == HA_ERR_KEY_NOT_FOUND) {
error = HA_ERR_END_OF_FILE;
} start_of_scan = ;
} else {
error = general_fetch(buf, ROW_SEL_NEXT, );
} DBUG_RETURN(error);
}
上一篇:bzoj 1095 [ZJOI2007]Hide 捉迷藏(括号序列+线段树)


下一篇:MySQL 进阶4 SQL常见函数: 字符函数/数学函数/日期函数/流程控制函数(if/case)