Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALLTRIM vs PADL with Indexes
Message
 
 
To
19/04/2001 12:32:45
David Brunelle
Université de Sherbrooke
Sherbrooke, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00497311
Message ID:
00497385
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
The left part of the WHERE criteria must match the expression used in the index in order for it to be used.

select * from mytable where UPPER(FIELD) = PADL(value,4) will use the index.
select * from mytable where ALLTRIM(FIELD) = ALLTRIM(value) will not.

>What if it is in a SELECT - SQL... ?
>
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform