Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this code be faster?
Message
De
20/08/2003 17:27:58
 
 
À
19/08/2003 15:00:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00821524
Message ID:
00822019
Vues:
15
What about the following select statement:

SELECT * FROM insurance WHERE LEFT(po_name,2) >= 'SI' AND (LEFT(po_name,6) <= 'SMITH ' OR LEFT(po_name,6) <= 'SMITH*')

Your left statement will always be the length of the start string for the first part and the length of the second or ending string plus 1 for the second part of the statement.

But how do you know if they are entering all or part of a name?

Does this make sense?
Vicki Combs
Customized software for today AND tomorrow...
Applications and web sites designed, developed and maintained. (MBE)

"Change is inevitable...unless that's changed!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform