« MySQL/Types de données » : différence entre les versions

Contenu supprimé Contenu ajouté
Page créée avec « {{MySQL}} === VARCHAR === VARCHAR is shorthand for CHARACTER VARYING. 'n' represents the maximum column length (upto 65,535 characters). A VARCHAR(10) column can hold a st... »
 
Aucun résumé des modifications
Ligne 1 :
{{MySQL}}
=== VARCHAR ===
<code>VARCHAR</code> isest shorthandl'abréviation forde <code>CHARACTER VARYING</code> (''caractère variant'' en anglais). 'n' represents the maximum column length (upto 65,535 characters). A VARCHAR(10) column can hold a string with a maximum length of 10 characters. The actual storage required is the length of the string (L), plus 1 or 2 bytes (1 if the length is < 255) to record the length of the string.<br/>
For the string 'abcd', L is 4 and the storage requirement is 5 bytes.