Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get year form date
Message
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 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01043263
Message ID:
01043268
Vues:
19
>i have varibel in table name "date"
>i want to filter year form date i try but not done, How thanks
>where summert.year(DATE())=thisform.tyear.value;

If I understand you corectly you have field named date in table named summert and I suppose that the type of that field is Date or DateTime.
Then to get the year portion of that field:
WHERE YEAR(summert.date) = thisform.tyear.value;
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform