Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL LIKE command
Message
De
19/08/1998 10:29:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00127474
Message ID:
00128124
Vues:
27
>Hi Jim,
>so nice to hear from You
>>
>>Try this;
>>
>>findtext = "%" + thisform.txtsearch.value + "%"
>>select * from task;
>>where description LIKE findtext
>
> can't work because 'findtext' is a parameter to the SQL statement.
> where description LIKE (findtext) && will do
>
> best regards from Friedrichsdorf
> see You in September?
> Eugen
Hi there,
Sorry I got this CC and I also said this would work. I couldn't understand why it can't work. Yes, it's a parameter to SQL and legal. I say :
If thisform.txtsearch.value is processed (ie:it needs alltrim(), upper()) this will work as also your suggestion will. ie:
*thisform.textsearc.value = "na"
findtext = "%" + thisform.txtsearch.value + "%"
select * from (home()+"samples\data\customer") ;
  where contact LIKE findtext
Would return contact names containing "na". What am I missing ?
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