Is it possible to fetch all column names that have a pattern? For example, fetch all columns that start with 'allow'. I would like it to only use pure pdo query and not an php array filter.
$prepare=$database->query("show columns from TABLENAME like 'allow%'");
$fetched=$prepare->fetchAll();