Im trying to select all column names from a mysql table that start with pweb and then have an integer.
This works for all column names:
SELECT `COLUMN_NAME`
FROM `INFORMATION_SCHEMA`.`COLUMNS`
WHERE `TABLE_NAME`='producten';
But this does not work unfortunately, how can I make this happen?
SELECT `COLUMN_NAME`
FROM `INFORMATION_SCHEMA`.`COLUMNS`
WHERE `TABLE_NAME`='producten' AND `COLUMN_NAME` LIKE `pweb`;
Thanks!