sqlite_valid

SQLiteResult::valid

SQLiteUnbuffered::valid

(PHP 5 < 5.4.0)

sqlite_valid -- SQLiteResult::valid -- SQLiteUnbuffered::validReturns whether more rows are available

说明

sqlite_valid ( resource $result ) : bool

面向对象风格 (method):

SQLiteResult::valid ( void ) : bool
SQLiteUnbuffered::valid ( void ) : bool

Finds whether more rows are available 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 rows available from the result handle, or FALSE otherwise.

参见

  • sqlite_num_rows() - Returns the number of rows in a buffered result set
  • sqlite_changes() - Returns the number of rows that were changed by the most recent SQL statement

相关文章
php gupnp 函数 check whether root device is availablephp maxdb 函数 returns the total number of rows changed deleted or inserted by the last executed statementphp msql 函数 returns number of affected rowsphp postgresql 函数 returns an array with client protocol and server version when available php sqlite 函数 returns the number of rows that were changed by the most recent sql statementphp sqlite 函数 returns the textual description of an error codephp sqlite 函数 opens an sqlite database and returns an sqlitedatabase objectphp sqlite 函数 fetches all rows from a result set as an array of arraysphp sqlite 函数 finds whether or not more rows are availablephp sqlite 函数 returns whether or not a previous row is availablephp sqlite 函数 returns the error code of the last error for a databasephp sqlite 函数 returns the rowid of the most recently inserted rowphp sqlite 函数 returns the encoding of the linked sqlite libraryphp sqlite 函数 returns the version of the linked sqlite libraryphp sqlite 函数 returns the number of fields in a result setphp sqlite 函数 returns the number of rows in a buffered result setphp sqlite 函数 returns whether more rows are availablephp sqlsrv 函数 indicates whether the specified statement has rowsphp sqlsrv 函数 returns the number of rows modified by the last insert update or delete query executedphp sqlite3 returns the number of database rows that were changed or inserted or deleted by the most recent sql statement
关注编程学问公众号