For database related videos, please subscribe channel
/ @datagurunaval
CHAR Vs VARCHAR
While declaring a variable without specifying the argument “n”, the default length is 1.
Similarities between CHAR vs. VARCHAR in SQL
1) Both stores non-Unicode characters.
2) Both are character data types.
3) Both take 1 byte to store one character.
4) It can hold numbers, letters and special characters.
5) The maximum length of both CHAR and VARCHAR data types is 8000 characters in SQL Server. Maximum length is defined in parenthesis, e.g. maximum length of CHAR(6) is 6 characters, and the maximum length of VARCHAR(6) is also 6 characters.
6) Index can be created on both the data types.
Nesta página do site você pode assistir ao vídeo on-line Difference between Char and Varchar datatypes | SQL Server duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário DataGuru Naval 04 Agosto 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,720 vezes e gostou 58 espectadores. Boa visualização!