PMA\libraries\DatabaseInterface::getColumnsSql PHP Méthode

getColumnsSql() public méthode

The 'Key' column is not calculated properly, use $GLOBALS['dbi']->getColumns() to get correct values.
See also: getColumns()
public getColumnsSql ( string $database, string $table, string $column = null, boolean $full = false ) : string
$database string name of database
$table string name of table to retrieve columns from
$column string name of column, null to show all columns
$full boolean whether to return full info or only column names
Résultat string
    public function getColumnsSql($database, $table, $column = null, $full = false)
    {
        $sql = 'SHOW ' . ($full ? 'FULL' : '') . ' COLUMNS FROM ' . Util::backquote($database) . '.' . Util::backquote($table) . ($column !== null ? "LIKE '" . $GLOBALS['dbi']->escapeString($column) . "'" : '');
        return $sql;
    }