Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacing VFP Function with SQL Server
Message
De
09/10/2014 13:29:30
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01609065
Message ID:
01609072
Vues:
44
>
>Do I understand correctly that DATEDIFF() is a "standard" SQL Function that accepts three parameters? (sorry for so many questions).

It's a function in SQL Server. It allows you to look at the difference between any part of 2 dates. So you can get the minutes elapsed between 2 datetimes, or the days elapsed between 2 dates.

So this...

DATEDIFF( d, '1-1-2014', '1-2-2014')

will return the difference between the first date and the second date, in terms of days.

again, there are all sorts of values for the first parameter...anything from milliseconds to years and things in between.

Never apologize for asking questions. :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform