Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning Date values that are NULL
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01118409
Message ID:
01118428
Vues:
25
This message has been marked as the solution to the initial question of the thread.
Tom,

The query should be as follows:
SELECT * FROM MyTable WHERE MyDate IS NULL
Null is a special value that isn't equal to anything. Values either are or are not null (IS NULL or IS NOT NULL).

HTH,
Chad


>I have date fields that have null values. I wish to return a data set of records of this type.
>
>
>SELECT * FROM MyTable WHERE MyDate = NULL
>
>
>This does not error out but it returns no values. Any suggestions?
>
>Thank you
>
>Tom
_________________________________
There are 2 types of people in the world:
    Those who need closure
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform