Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's to like about a datetime
Message
De
04/09/2018 16:54:06
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
04/09/2018 09:23:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
MS SQL Server
Divers
Thread ID:
01661714
Message ID:
01661817
Vues:
65
>>An exact match and >= or (worse) BETWEEN are not the same thing.

The OP asks about using LIKE which IMHO will involve an explicit or implicit cast to string that's unlikely to benefit from a datetime index.

Whereas exact match, >= and BETWEEN are very likely to use an index if there is one. Nobody is so silly as to suggest all these are the same thing AFAICS.

My answer to Dragan was that his example can be achieved by BETWEEN. If you disagree, the question already has been asked how else LIKE might be intended so unless there are examples, I'm not about to be drawn into straw man arguments.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform