How do I see what character set a MySQL database / table / column is?

前端 未结 15 1615
失恋的感觉
失恋的感觉 2020-11-22 06:33

What is the (default) charset for:

  • MySQL database

  • MySQL table

  • MySQL column

15条回答
  •  误落风尘
    2020-11-22 06:49

    For databases:

    Just use these commands:

    USE db_name;
    SELECT @@character_set_database;
    -- or:
    -- SELECT @@collation_database;
    

提交回复
热议问题