How must I execute EXPLAIN QUERY PLAN
command to sqlite to get results and show them on the screen with php
?
I use simple Sqlite3
php class http://nl1.php.net/manual/en/class.sqlite3.php , but query()
return SQLite3Result
object, not the raw dump.
$result = $db->query("EXPLAIN QUERY PLAN SELECT * from events WHERE type='comment' AND TIMESTAMP > $time AND PAGE = '$page' LIMIT 1");
echo $result;