MICROSECONDO
Sintassi
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> MICROSECOND[MICROSECOND]:::quoted
MICROSECOND --> LB["("]:::quoted
LB --> Input
Input --> RB[")"]:::quoted
RB --> End((END))
Scopo
La funzione SQL MICROSECOND estrae i microsecondi da una data e un'ora.
Vedi anche DAY, HOUR, MILLISECOND, MINUTE, MONTH, SECOND e YEAR.
Parametri:
- Dati di input (
datetime): la data e l'ora da cui estrarre i microsecondi.
Restituisce: i microsecondi sotto forma di int32.
Esempi
L'esempio seguente estrae i microsecondi dalla data e dall'ora correnti del sistema in UTC:
select microsecond(sysdateutc)
-------------------
963926
L'esempio seguente estrae i microsecondi da una data e un'ora fisse:
select microsecond(to_date('2016-12-31T12:34:56.1234567'))
-------------------
123456