编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
Mysql参考手册

16.9.3. 实施rnd_init()函数

在任何表扫描之前调用的函数是rnd_init()函数。函数rnd_init()用于为表扫描作准备,将计数器和指针复位为表的开始状态。

下述示例来自CSV存储引擎:

  int ha_tina::rnd_init(bool scan)
    {
      DBUG_ENTER("ha_tina::rnd_init");
 
      current_position= next_position= 0;
      records= 0;
      chain_ptr= chain;
 
      DBUG_RETURN(0);
    }  
相关文章
mysql rnd initmysql 实施external lock 函数mysql 实施extra 函数mysql 实施info 函数mysql 实施rnd init 函数mysql 实施store lock 函数mysql 实施rnd next 函数mysql 实施基本的表扫描功能mysql 与group by子句同时使用的函数和修改程序mysql 其他函数mysql 自定义函数接口的特性php cubrid cubrid mysql 兼容性函数php cubrid mysql 兼容性函数 return the number of rows affected by the last sql statementphp cubrid mysql 兼容性函数 get the maximum length of the specified fieldphp cubrid mysql 兼容性函数 return an array with the list of all existing cubrid databasesphp cubrid mysql 兼容性函数 perform a query without fetching the results into memoryphp mysql 函数 从结果集中取得列信息并作为对象返回php mysql 函数 取得结果集中每个输出的长度php mysql 函数 取得上一步 insert 操作产生的 idphp mysql 函数 返回当前线程的 id
关注编程学问公众号
编程学问网 湘ICP备20001732号