time (data type)
data type time
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
time [ ( fractional second scale ) ]
Work example
Store a time of day that is not tied to a particular date.
Pair time with a date or time-zone rule when an event must identify one real instant.
Check your work time stores no calendar date and no time-zone offset.
Practice SQL
Open in SQL FlowSELECT CAST('12:30:15.1234' AS time(4)) AS opening_time;
Open Microsoft Learn for full syntax, permissions, and details for your version.