Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Supporting syntax in VFP
Message
 
 
À
20/12/2010 22:03:37
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 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01493411
Message ID:
01493423
Vues:
77
>>
>>select convert(char(6), myTable.myDateField,112) as YearMonth, ...
>>
>>from myTable
>>group by convert(char(6),myTable.myDateField,112)
>
>Thanks, I assume 112 has a specific meaning to return the value.

Yes. Check CAST & CONVERT for all available formats. 112 is the ISO format 'yyyymmdd'
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform