Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alter row_format to dynamic

Tags:

mysql

What is the MySQL statement to alter the row_format to dynamic?

I am not sure how I am supposed to do it (i.e. using the information_schema or by using a table ALTER).

like image 690
airnet Avatar asked Nov 13 '11 15:11

airnet


People also ask

How do I change the format of a row?

Select a row or a range of rows. On the Home tab, select Format > Row Width (or Row Height).

What is row_ format DYNAMIC?

The DYNAMIC row format is based on the idea that if a portion of a long data value is stored off-page, it is usually most efficient to store the entire value off-page. With DYNAMIC format, shorter columns are likely to remain in the B-tree node, minimizing the number of overflow pages required for a given row.

What is row format in mysql?

The default row format for InnoDB tables is COMPACT . The row format of a table can be defined explicitly using the ROW_FORMAT table option in a CREATE TABLE or ALTER TABLE statement. For example: CREATE TABLE t1 (c1 INT) ROW_FORMAT=COMPACT; ROW_FORMAT options include REDUNDANT , COMPACT , DYNAMIC , and COMPRESSED .


1 Answers

try

ALTER TABLE `test`  ROW_FORMAT=DYNAMIC;
like image 57
david Avatar answered Oct 21 '22 11:10

david