Determine row size for table

前端 未结 6 1676
生来不讨喜
生来不讨喜 2020-12-03 02:38

How to I determine the maximum row size for a table? I\'m looking for a tool or script that does this so I don\'t have to add up each column\'s size by hand.

My goal

6条回答
  •  庸人自扰
    2020-12-03 03:01

    Have a look at INFORMATION_SCHEMA.COLUMNS. You can add the size of each column in a table to give you an idea which tables have the potential to overshoot the 8k/row rule.

    SELECT * FROM INFORMATION_SCHEMA.COLUMNS 
    

    You will figure out the rest when you see the query result.

提交回复
热议问题