Created
October 8, 2015 06:24
-
-
Save blue1st/4c93154e9479788783da to your computer and use it in GitHub Desktop.
テーブルのカラム一覧を取得する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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