Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building an SQL string
Message
From
20/11/2001 14:08:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00584086
Message ID:
00584117
Views:
27
I may be missing the point entirely but how about
lcSQL = 'UPDATE ' + cMyTable + ' SET ' + cMyDateField + ' = dSomeDate '   + 'WHERE ' + MyKeyField + ' = ' + uKeyField
>Hi All,
>
>I'm buiding an SQL string to execute as a macro or an EVALUATE(). Every data type I've tested thus far works except for DATE.
>
>lcSQL = 'UPDATE ' + cMyTable + ' SET ' + cMyDateField + ' = ' + dSomeDate + 'WHERE ' + MyKeyField + ' = ' + uKeyField
>
>&lcSQL
>
>Converting dSomeDate to a Character causes a data mismatch error.
>
>Any ideas on how to accomplish this?
>
>TIA
>Robert
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform