Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql view schema collation

Is it possible to view the collation for a specific schema via sql? I have found examples for individual columns but its the schema im hoping to lookup.

So as a guess something like

SELECT 'collation_info' FROM DB_NAME

like image 787
Robbo_UK Avatar asked Feb 22 '23 00:02

Robbo_UK


1 Answers

You can view this information from information_schema.schemata table -

SELECT * FROM information_schema.SCHEMATA
  WHERE schema_name = 'DB_NAME';

Or try SHOW CREATE DATABASE statement.

like image 77
Devart Avatar answered Mar 05 '23 14:03

Devart