Row size too large error in mysql create table query

前端 未结 7 447
萌比男神i
萌比男神i 2020-12-08 06:56

I am trying to create a table with the below query

Create Table PerformaceReport
(
campaignID int,
keywordID bigint,
keyword varchar(8000),
avgPosition decim         


        
7条回答
  •  心在旅途
    2020-12-08 07:35

    Use TEXT instead of VARCHAR. Because you're exceeding the maximum row size. if you use TEXT ,it is intended for large text columns. Max size of varchar is 65535. create a column with varchar(65535) but it would have to be the only column in the table.

    or

    problem is the row size limit for innodb tables, belowlinks you can find some approaches to solve this:

    http://www.mysqlperformanceblog.com/2011/04/07/innodb-row-size-limitation/ https://dba.stackexchange.com/questions/6598/innodb-create-table-error-row-size-too-large

提交回复
热议问题