Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Good ADO book for VFP 9
Message
De
03/07/2006 05:00:52
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/07/2006 23:02:59
Yh Yau
Ingenuity Microsystems Sdn Bhd
Kuala Lumpur, Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01132448
Message ID:
01133368
Vues:
25
>Cetin,
>Example:-
>lcstring = "Lee's ABC Store,USA" (Sometimes could be double quote)
>spt = sqlexec(lnhandle,"select * from tablename where field like %"+lcstring)
>Problem caused both by the comman and single quote.
>Yau

Use parameters as I said and it won't be a problem.
lcstring = "%Lee's ABC Store,USA" && (Sometimes could be double quote)
* or:
* lcString = [This has " and ' in it]
spt = sqlexec(lnhandle,"select * from tablename where [field] like ?m.lcstring","myResult")
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform