Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting records from SQLServer based on date/time fiel
Message
De
08/03/2006 11:06:03
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
 
 
À
07/03/2006 18:38:03
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
OS:
Windows XP SP1
Divers
Thread ID:
01102278
Message ID:
01102444
Vues:
12
This message has been marked as the solution to the initial question of the thread.
?SQLEXEC( 1, "Select * from MyTable where between(crtd_datetime, m.startdate, m.enddate)")
You're sending text strings "m.startdate" and "m.enddate" to the server. You need
SQLEXEC( 1, "Select * from MyTable where between(crtd_datetime, ?m.startdate, ?m.enddate)")
Also, you might need to use DTOT() if the field types on the back end are DateTime and yours are only dates.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform