3

I have a varchar column that needs more space. 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!

Genadinik
  • 18,153
  • 63
  • 185
  • 284
  • 2
    Check out this [StackOverflow post.](http://stackoverflow.com/questions/1279568/how-can-i-modify-a-size-of-column-in-a-mysql-table) – Milhous Jul 19 '11 at 01:14

2 Answers2

5

It won't delete the data by default.

Edgar Velasquez Lim
  • 2,426
  • 18
  • 15
2

When you try to increase column size, it doesn't affect data. while decreasing column size, it should be affected

php
  • 4,307
  • 1
  • 24
  • 13