Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mukarramjavid/ad28158259616dc283c9dc4049c9f92b to your computer and use it in GitHub Desktop.
Save mukarramjavid/ad28158259616dc283c9dc4049c9f92b to your computer and use it in GitHub Desktop.
SELECT GROUP_CONCAT("m.",COLUMN_NAME)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = '[database_name]' AND TABLE_NAME = '[table_name]';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment