Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql update
Message
 
 
To
15/03/2011 22:30:39
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Miscellaneous
Thread ID:
01503811
Message ID:
01503818
Views:
53
>Hi All,
>
>Currently I am writing a visual foxpro program to write data / record to sql server. However there is a problem when I failed to update the sql table when there is " ' " in the string. Example: update the "21' lcd monitor"
>
>update tbl_item set description1 = ' 21' lcd monitor ' where item = '0001'
>
>How could I include the " ' " in the string?
>
>Thanks for your help in advance.

Use parameter instead.
update tbl_item set Description1 = ?m.lcDescription where item = ?m.lcItem
where lcDescription and lcItem are local variables.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform