9951 explained code solutions for 126 technologies


mysqlGet default charset of a database


SELECT DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA WHERE schema_name = 'db';ctrl + c
DEFAULT_CHARACTER_SET_NAME

will select dafault charset for specified databse

information_schema.SCHEMATA

system table with meta information for databases

'db'

name of our databse to get charset for