What is the difference between varchar and nvarchar?

后端 未结 19 2167
野的像风
野的像风 2020-11-22 04:05

Is it just that nvarchar supports multibyte characters? If that is the case, is there really any point, other than storage concerns, to using varchars

19条回答
  •  太阳男子
    2020-11-22 04:27

    The main difference between Varchar(n) and nvarchar(n) is:

    Varchar( Variable-length, non-Unicode character data) size is upto 8000. 1.It is a variable length data type

    1. Used to store non-Unicode characters

    2. Occupies 1 byte of space for each character

    Nvarchar:Variable-length Unicode character data.

    1.It is a variable-length data type

    2.Used to store Unicode characters.

    1. Data is stored in a Unicode encoding. Every language is supported. (for example the languages Arabic, German,Hindi,etc and so on)

提交回复
热议问题