Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I display sqlserver date 1/1/1900 as empty?
Message
De
28/07/2002 18:26:16
 
 
À
28/07/2002 17:41:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00683384
Message ID:
00683388
Vues:
25
I ran into this problem. If the date field is left out of the INSERT or UPDATE then it is left blank. As soon as you include the field it defaults to 1/1/1900. Another approach would to use the CASE expression in your SELECT ;

SELECT EmptyDate =
CASE datefield
WHEN '1/1/1990' THEN 'Y'
ELSE 'N' END
FROM table
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform