1
Answer

How to keep the column type without MySQL changing it?

Gordana Tasic

Gordana Tasic

3y
381
1

I have column "description" in table in MySQL database. Type for that column is longtext. However, when i want to write something in that column, MySQL changes type to varchar(255) and I have error "Data too long for column 'description' at row 1". Does anyone know how to keep type longtext without MySQL changing it?

Answers (1)