What will be faster?
$i = $DB->query("SELECT COUNT(id) FROM `table`")->fetch_assoc(); or
$i = $DB->query("SELECT id FROM `table`")->num_rows; ?
fetch_assoc(); or $i = $DB->query("SELEC...">
Source: https://ru.stackoverflow.com/questions/893423/
All Articles