Skip to content

Instantly share code, notes, and snippets.

@blue1st
Created October 8, 2015 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blue1st/4c93154e9479788783da to your computer and use it in GitHub Desktop.
Save blue1st/4c93154e9479788783da to your computer and use it in GitHub Desktop.
テーブルのカラム一覧を取得する
SELECT GROUP_CONCAT(COLUMN_NAME separator ' ') 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