Skip to content

Kirby 5.0.2

$sql->columns()

Returns a query to list the columns of a specified table; the query needs to return rows with a column name

$sql->columns(string $table): array

Parameters

Name Type Default Description
$tablerequired string no default value Table name

Return type

array

Parent class

Kirby\Database\Sql