Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Filling SQL date field with empty date?
Message
 
 
À
19/11/2003 14:51:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00851431
Message ID:
00851617
Vues:
7
This message has been marked as the solution to the initial question of the thread.
Try:

update vizkeys set date_used=NULL where date_used IS NOT NULL

>Greetings Mark
>>>
>>
>>Try no quotes and no periods arount NULL.
>
>OK, just tried
>
>>>SQLPREPARE(gnhandle,"update vizkeys set date_used=NULL where date_used<>'.NULL.' ","real")
>
>and it complained about string conversion
>
>so I tried
>
>>>SQLPREPARE(gnhandle,"update vizkeys set date_used=NULL where date_used<>.NULL. ","real")
>
>and it complained about a syntax problem near NULL
>
>then I tried
>
>>>SQLPREPARE(gnhandle,"update vizkeys set date_used=NULL where date_used<>NULL ","real")
>
>and it didn't protest. But neither did it replace a single value.
>
>Jeez!
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform