How to choose nvarchar and varchar?

Link : The difference between nvarchar and varchar

to sum up:

varchar

1. Use non-Unicode encoding
2. Maximum length is 8000
3. English storage size=1, Chinese storage size=2

nvarchar

1. Use Unicode encoding
2. Maximum length is 4000
3. Chinese and English storage size=1

**

select:

nvarchar

Reason:

1. No need to transcode, save time
2. Support multiple languages

Other links : thoroughly understand Unicode encoding

Guess you like

Origin blog.csdn.net/qq_36636312/article/details/108420540