Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select with date in the where-part in ADO
Message
De
26/09/2001 09:05:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/09/2001 08:59:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00560904
Message ID:
00560905
Vues:
24
Perhaps you can use something like this:
range1 = dtot({^2001-09-09})
range2 = dtot({^2001-09-09}+1)
... where d_startdate between range1 and range2
The basic idea is to select all records between midnight 2001-09-09 and midnight of the next day.

>Hi,
>when I try to select with a numeric or character comparison in the where-part, it functions OK.
>But how can I use a time/date comparison in the where-part?
>I use this query and put it in the sourceproperty of an ADO command object:
>SELECT N_ID,C_NAME,C_PLATE,D_STARTDATE, .... FROM database WHERE D_STARTDATE = CTOD('09-09-2001')
>I understand that the CTOD command doesn't exist where (in ADO) the query runs, but I really need to select by date...
>
>TIA ET
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform