Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculating Age
Message
De
06/03/2002 10:11:42
Eugenijus Rimkus
SPAB Siauliu energija
Siauliai, Lithuania
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Divers
Thread ID:
00627078
Message ID:
00628995
Vues:
23
Hi,

declare @dot datetime
SET @dot = '03/21/1984'

Select Datediff(Month, @dot, getdate())/12 as age
Select Datediff(Day, @dot, getdate())/365 as age
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform