Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Portion of a given date
Message
De
02/09/2004 20:26:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
02/09/2004 17:28:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00938979
Message ID:
00939018
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>Hi,
>
>SQL, remote view of MYSQL issue..
>
>What function should I use to get a DATE portion of a DATETIME field ?
>
>..Or, how do I compare those datetime fields with constants data, I mean:
>
>
>..WHERE table1.dttimefld >= ?? AND table1.dttimefld =< ??
>
>
>TIA
>
>Claudio

Claudio,
This is SQLExec(), right ? If so use parameters and let VFP take care of rest. ie:

m.dStart = date()-20
m.dEnd = date()

SQLExec(nHandle,'... where table1.dttimefld between ?m.dStart and ?m.dEnd')

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform