mysql, how to query the table comments? code example
Example 1: mysql, how to query the table comments?
SELECT a.COLUMN_NAME, a.COLUMN_COMMENT
FROM information_schema.COLUMNS a
WHERE a.TABLE_NAME = 'YOUR_TABLE_NAME'
Example 2: comments in mysql
#this is a comment
-- this is a comment but requires a whitespace/tab/newline after the double -