« MySQL/NULL » : différence entre les versions
Contenu supprimé Contenu ajouté
Aucun résumé des modifications |
Aucun résumé des modifications |
||
Ligne 13 :
("Jonny", "Five", NULL, "Binary");
</source>
<code>NULL</code> ne doit pas être entouré d'apostrophes ou de guillemets, ou bien il désignera une chaine de
For some strange reason, NULLs do not show visually on windows XP in Varchar fields but they do in Fedora's version, so versions of mysql can give different outputs. Here we set the value of Sting and Homer's first name to a zero length string "", because we KNOW they have NO first name, but we KNOW we do not know the place they were born. To check for a NULLs use▼
{{remarque|<code>NULL</code> n'apparait pas dans les colonnes Varchar sous Windows XP mais sous Fedora oui.}}
<source lang="mysql"> ▼
▲
SELECT * from Singer WHERE Birth_place IS NULL;
or
|