“Data too long for column” - why?

前端 未结 12 707
Happy的楠姐
Happy的楠姐 2020-12-12 19:47

I\'ve written a MySQL script to create a database for hypothetical hospital records and populate it with data. One of the tables, Department, has a column named Description,

12条回答
  •  忘掉有多难
    2020-12-12 20:07

    I try to create a table with a field as 200 characters and I've added two rows with early 160 characters and it's OK. Are you sure your rows are less than 200 characters?

    Show SqlFiddle

提交回复
热议问题