Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert with a date
Message
 
À
31/05/2006 14:14:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01126253
Message ID:
01126263
Vues:
16
>also i want to know, if my date is empty it will insert 01/01/1900. there is a way to put null of something else ???
>thansk
Yes, if date is empty SQL Server put 1 jan 1900 :-( That's why all our DateTime fields allow null, you could do something like this:
TEXT TO SQLCOMMAND NOSHOW PRETEXT 7
     INSERT INTO TB_ARINV (TR_ZEBRAINVID       ,TR_DUEDTE)
                   VALUES (<<ARINV.ZEBRAINVID>>,?IIF(EMPTY(ARINV.DUEDTE),NULL,DTOS(ARINV.DUEDTE)))
ENDTEXT
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform