Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL LIKE command
Message
De
17/08/1998 13:11:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/08/1998 13:05:03
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00127474
Message ID:
00127478
Vues:
30
>I am using a SQL-LIKE with the percent wild cards. Findtext is a variable. This select statment does not work. Does anyone know why?
>Is there another way to do the same thing?
>
>findtext = thisform.txtsearch.value
>select * from task;
>where description LIKE %findtext%
>
>Thanks
>
>Jim
It would be "%"+findtext+"%" and do not forget alltrim(thisform.txtsearch.value) otherwise generally you wouldn't find anything.
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