Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating SQL Fields with single quotes
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00715642
Message ID:
00715646
Views:
13
>I am trying to UPDATE a SQL table that has single quotes and appostrophies inside the field1. I can't use double quotes around my character field. Does anyone know of a solution for this.
>
>lcSQLUpdate = "update table1 set field1 = '"+foxvar1+"' where sqlvar=x"
>
>Thanks,

This works for me:

SQLEXEC(lnHandle, [update appusers set lastname = 'O''Malley' where keyid = 2])
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform