The sql_explain() function is used to return an explanation of how the SQL server will process a request. This function is used by the debugger to provide information relating to the generated SQL commands.

The function accepts 3 parameters:

  1. $q is the SQL query,
  2. $serveur,
  3. $option.

One possible usage might be:

$query = sql_get_select('column', 'table');
$explain = sql_explain($query);

Author Mark Baber Published : Updated : 12/03/23

Translations : English, français