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

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

What is the (default) charset for:

  • MySQL database

  • MySQL table

  • MySQL column

15条回答
  •  终归单人心
    2020-11-22 07:12

    I always just look at SHOW CREATE TABLE mydatabase.mytable.

    For the database, it appears you need to look at SELECT DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA.

提交回复
热议问题