dokumentace k produktu Invantivesoučást invantive cloud
Fóra podpory InvantivePřihlásit se/ Zaregistrujte se

SECOND

Syntaxe

%%{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))

Účel

The SECOND SQL function extracts the seconds from a date/time.

Viz také DAY, HOUR, MICROSECOND, MILLISECOND, MINUTE, MONTH a YEAR.

Parametry:

  • Input (datetime): the date/time to extract the seconds from.

Returns: the seconds as an int32.

Příklady

The following example extracts the seconds from current system date/time in UTC:

select second(sysdateutc)

-------------------
6

The following example extracts the seconds from of date:

select second(to_date('20260101123456', 'YYYYMMDDHH24MISS'))

-------------------
56