开发者

Mysql strings only get saved up to about 277 char

Im using ruby on rails with a mysql db in the back. I realize开发者_开发问答d, that the characters are limited up to about 277 per column entry...

How can I increase this?

Thanks, Markus


change_column :the_table_name, :the_column_name, :string, :limit => 1024 # where 1024 is your desired limit


Changing the field type from text to mediumtext would allow you to enter more characters

PK

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜