Returns the microsecond component (0–999999) of a time or datetime expression.
INTDiperbarui: 13 Jun 2026MICROSECOND(expr)The time or datetime value to extract from
1 SELECT MICROSECOND('12:30:45.123456') AS microsec;
Extracts the microsecond portion from a time value.
1 SELECT event_id, 2 event_time, 3 MICROSECOND(event_time) AS microsec 4 FROM high_freq_events;
Analyzes event timing at microsecond precision.
1 SELECT start_time, end_time, 2 (UNIX_TIMESTAMP(end_time) - UNIX_TIMESTAMP(start_time)) + 3 (MICROSECOND(end_time) - MICROSECOND(start_time)) / 1000000 AS duration_sec 4 FROM transactions;
Calculates duration with microsecond precision.
Sudah paham MICROSECOND? Latih langsung di browser
Latihan interaktif, langsung di browser.