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.
En esta página del sitio puede ver el video en línea Difference between Char and Varchar datatypes | SQL Server de Duración hora minuto segunda en buena calidad , que subió el usuario DataGuru Naval 04 agosto 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 4,720 veces y le gustó 58 a los espectadores. Disfruta viendo!