# sqlite_has_prev

# SQLiteResult::hasPrev

(PHP 5 < 5.4.0)

sqlite_has_prev -- SQLiteResult::hasPrev — Returns whether or not a previous row is available

### 说明

sqlite_has_prev ( resource `$result` ) : bool

面向对象风格 (method):

SQLiteResult::hasPrev ( void ) : bool

Find whether there are more previous rows from the given result handle.

### 参数

`result`

  The SQLite result resource. This parameter is not required when using the object-oriented method.

  > Note:

  > 此函数不能用于未缓冲的结果句柄。

### 返回值

Returns `TRUE` if there are more previous rows available from the `result` handle, or `FALSE` otherwise.

### 参见

- sqlite_prev() - Seek to the previous row number of a result set
- sqlite_has_more() - Finds whether or not more rows are available
- sqlite_num_rows() - Returns the number of rows in a buffered result set