Size of varchar columns

前端 未结 3 891
执笔经年
执笔经年 2021-01-17 15:32

In sql server does it make a difference if I define a varchar column to be of length 32 or 128?

3条回答
  •  长情又很酷
    2021-01-17 16:01

    There should be no noticeable difference as the backend will only store the amount of data you insert into that column. It's not padded out to the full size of the field like it is with a char column.

    Edit: For more info, this link should be useful.

提交回复
热议问题