What ROW_FORMAT is my table?

后端 未结 1 1539
[愿得一人]
[愿得一人] 2021-02-06 03:44

I\'ve discovered that MySQL has multiple row formats, and it\'s possible to specify this or change it. Also, the default ROW_FORMAT has apparently changed over time with MySQL

相关标签:
1条回答
  • 2021-02-06 04:42

    Information schema offers a wealth of information.

    SELECT row_format FROM information_schema.tables
        WHERE table_schema="YOUR DB" AND table_name="YOUR TABLE" LIMIT 1;
    

    2014.06.19 - Mild Update

    The following query will give you the row format of all tables in the current database:

    SELECT `table_name`, `row_format`
    FROM `information_schema`.`tables`
    WHERE `table_schema`=DATABASE();
    
    0 讨论(0)
提交回复
热议问题