SECONDO
Sintassi
%%{init: {
'theme': 'base',
'flowchart': { 'padding': '7', 'nodeSpacing': '20', 'rankSpacing': '20' },
'themeVariables': {
'fontSize': '11px',
'fontFamily': 'Arial'
}
}}%%
flowchart LR
Start((START)) --> SECOND[SECOND]:::quoted
SECOND --> End((END))
Scopo
La funzione SQL SECOND estrae i secondi da una data e un'ora.
Vedi anche DAY, HOUR, MICROSECOND, MILLISECOND, MINUTE, MONTH e YEAR.
Parametri:
- Dati di input (
datetime): la data e l'ora da cui estrarre i secondi.
Restituisce: i secondi sotto forma di int32.
Esempi
L'esempio seguente estrae i secondi dalla data e dall'ora di sistema correnti in UTC:
select second(sysdateutc)
-------------------
6
L'esempio seguente estrae i secondi da una data:
select second(to_date('20260101123456', 'YYYYMMDDHH24MISS'))
-------------------
56