MICROSECONDS_SUB (Lakehouse v2)
Subtracts a specified number of microseconds from a datetime.
Analyze Syntax
Section titled “Analyze Syntax”func.microseconds_sub(<datetime>, <n>)Analyze Examples
Section titled “Analyze Examples”func.microseconds_sub('2024-01-01 00:00:01', 1000000)
┌───────────────────────┐│ '2024-01-01 00:00:00' │└───────────────────────┘SQL Syntax
Section titled “SQL Syntax”MICROSECONDS_SUB(<datetime>, <n>)SQL Examples
Section titled “SQL Examples”SELECT MICROSECONDS_SUB('2024-01-01 00:00:01', 1000000);
┌─────────────────────┐│ 2024-01-01 00:00:00 │└─────────────────────┘