开发者

select found rows mysql php code

开发者 https://www.devze.com 2023-02-14 06:29 出处:网络
I just found this on stack Getting single value from a single row wi开发者_Python百科th Mysql/PHP:

I just found this on stack Getting single value from a single row wi开发者_Python百科th Mysql/PHP:

$result = end(mysql_fetch_array(mysql_query('SELECT FOUND_ROWS()', $db)));

I searched and could not find an easy to understand description on google.

Could somebody please explain select found_rows()?

What would $db possibly look like?

Does this return a particular value of a row or the entire row like select *?


$db is a MySQL connection handle. FOUND_ROWS() returns the total number of rows that would have been returned if the query didn't have a LIMIT clause, without re-running the query.

0

精彩评论

暂无评论...
验证码 换一张
取 消