简体   繁体   English

如果我更改 MySQL 表列以增加大小,它会删除列中的数据吗?

[英]If I alter MySQL table column to increase size, will it delete data in the column?

I have a varchar column that needs more space.我有一个需要更多空间的 varchar 列。 How can I increase the size of the column (the number of characters it can have inserted into it), and not lose the data that is in there?如何增加列的大小(可以插入其中的字符数),而不丢失其中的数据?

Thanks!谢谢!

It won't delete the data by default.默认情况下不会删除数据。

When you try to increase column size, it doesn't affect data.当您尝试增加列大小时,它不会影响数据。 while decreasing column size, it should be affected在减小列大小的同时,它应该受到影响

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM