Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Filling SQL date field with empty date?
Message
 
 
To
19/11/2003 14:51:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00851431
Message ID:
00851617
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform