Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which side for search (continues...)
Message
De
25/04/2001 12:41:35
Chuck Tripi
University of Wisconsin - Milwaukee
Milwaukee, Wisconsin, États-Unis
 
 
À
25/04/2001 11:45:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00499572
Message ID:
00499685
Vues:
22
At this case with recommending not to use $ for search, maybe AT (or better ATC) may be better.
   SELECT first, last ;
      FROM person ;
      WHERE ALLTRIM(UPPER(m.lo2)) $ UPPER(person.last) ;
      INTO ARRAY ThisForm.laSQL
into
   SELECT first, last ;
      FROM person ;
      WHERE ATC(ALLTRIM(m.lo2),person.last) > 0 ;
      INTO ARRAY ThisForm.laSQL
Oh well. I am still leaving the $ in the code since I just want to finish this and wait for a call in responding to my resume. Do I get a points for repling answers to myself? Just kidding :)

Chuck

>IMHO, in production, using $ on SQL is not recommended. You will be better off using a 3rd party product for searching string either on text fields or on memo fields such as PHDBase or another mecanism of your own.
>
>That is good for testing and for command prompt requests. However, in production, I would not consider it unless the table is small and the result is returned instantly.
Today is tomorrow's yesterday.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform