Coding with SPIP 3.0
SPIP3.0 Technical Documentation

> > > > sql_explain


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:

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