Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Between Statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00838116
Message ID:
00838125
Vues:
23
>I am trying to create a query whereby the results will be given between 2 dates. My query is below. This does not work! My question would then be Is it possible to use the BETWEEN statement in an SQL?
>
>
>WITH thisform.pageframe1.page3.list3
>	.RowSourcetype = 3
>	.Rowsource = 'SELECT mainkey FROM pdmlog' + ;
>	             ' WHERE pdmlog.type="Change" and pdmlog.database="COST2"' + ;
>	             ' and BETWEEN(pdmlog.date,{^2003-04-01},{^2003-04-02})INTO CURSOR result'
>ENDWITH
>
>
>Many Thanks in Advance

Neil,

Sure. Like this
pdmlog.date BETWEEN '01/04/2003' AND '02/04/2003'
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform