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

Contenu supprimé Contenu ajouté
Aucun résumé des modifications
Aucun résumé des modifications
Ligne 1 :
{{MySQL}}
=== VARCHAR ===
<code>VARCHAR</code> est l'abréviation de <code>CHARACTER VARYING</code> (''caractère variant'' en anglais). 'n' representsreprésente thela taille maximum columnde lengthcolonne (uptojusqu'à 65,535{{format:65535}} characterscaractères). APar exemple, une colonne de type <code>VARCHAR(10)</code> columnpeut cancontenir hold10 a string with acaractères 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.