9951 explained code solutions for 126 technologies


mysqlGet default charset of a column


SELECT character_set_name FROM information_schema.columns WHERE table_schema = 'db' AND table_name = 'table' AND column_name = 'column';ctrl + c
character_set_name

will show charset for specified column

information_schema.columns

system table with meta information for columns of all tables

'db'

name of our databse

'table'

name of our table

'column'

name of our column