extract(… from <datetime>)

BigQueryDb2 (LUW)DuckDBH2MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite20052007200920112013201520172019202120232025⊘ 3.5.7 - 3.51.0⊘ 2008R2 - 2025✓ 14 - 18c✓ 8.3 - 13c✓ 11gR1 - 23.26.0⚠ 5.6 - 9.5.0bd⚠ 5.0 - 5.5ab⚠ 5.3 - 12.1.2bd⚠ 5.1 - 5.2ab⚠ 1.4.197 - 2.4.240a⚠ 1.4.192 - 1.4.196ab⚠ 1.0.0 - 1.4.0b⚠ 9.7 - 12.1.2a⚠ 2.0ab
  1. No time zone fields
  2. SECOND does not include fractions
  3. Returns approximate numeric type
  4. SECOND does not include fractions. Use SECOND_MICROSECOND