I have several columns in my databases with similar names. How do I select those based on the word they start with? Here\'s an example table layout:
You'd have to build the SQL dynamically. As a starting point, this would get you the column names you're seeking.
SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = 'Foods' AND table_schema = 'YourDB' AND column_name LIKE 'Vegetable%'