MySQL VarChar 255 and above

2019-08-03 08:03发布

I am currently doing screen scraping and storing in to a MySQL database, I used some of my columns as answer_content varchar(255) NOT NULL,but the problem is some of the data is getting truncated, I was reading following blog post.

But I am not really sure if that is the solution: What is the best solution to save the text without getting them truncated? I am not doing this on a server side and currently doing on a person laptop.

2条回答
别忘想泡老子
2楼-- · 2019-08-03 08:42

Change the column type to TEXT.

查看更多
登录 后发表回答