Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending a String with Single Quote Using SPT
Message
From
29/09/2009 16:08:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
29/09/2009 15:56:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01426727
Message ID:
01426732
Views:
56
>I am trying to write '56230','62214' to a character field in a db2 table. I have tried every syntax combo I can think of including the following but nothing works. I need help.
>
>
>
>bl = "'56230','62217'"
>testString = "Update webprddt7.resmngta7 Set attribval = '" + bl + "' Where attribname = 'HeadCountBadgeExclusions'"
>
>
Did you try sending parameters instead?
bl = "'56230','62217'"
testString = "Update webprddt7.resmngta7 Set attribval = ?m.bl Where attribname = 'HeadCountBadgeExclusions'"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform