Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
$ operator in SQL?
Message
 
 
À
10/10/2005 18:11:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01057806
Message ID:
01057808
Vues:
13
>Is it possible to use the $ operator in an SQL statement? I would like to create an SQL to select records where a certain character string is contained anywhere within one of the character fields of my table.
>
>If it's not possible to use the $ operator in SQL, is there another way to do it?

Sure it's possible. You can also use SQL equivalent of $ - LIKE operator
...
  WHERE lcSearchString $ myfield
*
...
  WHERE myfield LIKE "%" + lcSearchString + "%"
Keep in mind that either condition is not be optimizable.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform