varchar or nvarchar

后端 未结 9 1834
走了就别回头了
走了就别回头了 2021-02-19 13:54

I am storing first name and last name with up to 30 characters each. Which is better varchar or nvarchar.

I have read that nvarchar

9条回答
  •  无人及你
    2021-02-19 14:32

    on performance:
    a reason to use varchar over nvarchar is that you can have twice as many characters in your indexes! index keys are limited to 900 bytes
    on usability:
    if the application is only ever intended for a english audience & contain english names, use varchar

提交回复
热议问题