bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MySQL MICROSECOND() Function

Concept visual

MySQL MICROSECOND() Function

Pointer walk
two pointers
leftright102132436485116
left=0
right=6
1
3

Start at both ends

Example

Return the microsecond part of a datetime: SELECT MICROSECOND("2017-06-20 09:34:00.000023");

Definition and Usage

Formula

The MICROSECOND() function returns the microsecond part of a time/datetime (from 0 to

999999).

Syntax

Microsecond(

datetime )

Parameter Values

Parameter

Description datetime

Required. The time or datetime to extract the microsecond from

Technical Details

Works in:

From MySQL 4.0

More Examples

Example

Return the microsecond part of a time value: SELECT MICROSECOND("23:59:59.000045");

Previous

❮ MySQL Functions

Next

Previous

MySQL MAKETIME() Function

Next

MySQL MINUTE() Function