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.
In questa pagina del sito puoi guardare il video online Difference between Char and Varchar datatypes | SQL Server della durata di ore minuti seconda in buona qualità , che l'utente ha caricato DataGuru Naval 04 agosto 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,720 volte e gli è piaciuto 58 spettatori. Buona visione!