Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use the time portion of a datetime column
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00557574
Message ID:
00557918
Vues:
15
>I'd like to find all rows where the time portion of a date_time column is between 11:00AM and 1:15PM.
>
>I seem to get into quite a rat's nest of convert(), datediff() and dateadd() combinations when looking for a simple way to do this.
>
>Thanks,
>Mike

Mike,

Try DATEPART()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform