Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP DATE() vs. SQL GETDATE()
Message
 
 
À
21/04/2006 08:48:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01115333
Message ID:
01115334
Vues:
13
>In VFP it's easy to reference the last month of data by using DATE()-31 but when I try this with SQL (ver. 6.5) GETDATE()-31, I get an error.
>
>How can you use MS SQL's GETDATE() and subtract (or add) a specific number of days?

Check DATEADD() function.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform