Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending a String with Single Quote Using SPT
Message
De
29/09/2009 16:08:13
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/09/2009 15:56:21
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01426727
Message ID:
01426732
Vues:
55
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform