Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timespan
Message
 
 
À
05/06/2006 16:18:44
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01127202
Message ID:
01127224
Vues:
13
This message has been marked as the solution to the initial question of the thread.
Mike,

Use the datediff() function
declare @t1 datetime, @t2 datetime
set @t1 = getdate()
set @t2 = getdate() + 10 && 10 days from now

select datediff( s, @t1, @t2 ) diffinseconds, datediff( mi, @t1, @t2 ) diffinminutes
>I have two datetime fields, both with just times. I am trying to create a view that shows the timespan of time1 to time2. Any advice?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform