extract(… from <datetime>)

BigQueryDb2 (LUW)MariaDBMySQLOracle DBPostgreSQLSQL ServerSQLite2005200720092011201320152017201920212023⊘ 3.5.7 - 3.50.0⊘ 2008R2 - 2022✓ 14 - 17a✓ 8.3 - 13a✓ 11gR1 - 23.9⚠ 9.4.0c⚠ 5.0 - 9.3.0⚠ 5.1 - 12.0.2⚠ 12.1.2b⚠ 9.7 - 12.1.0⚠ 2.0
  1. Returns approximate numeric type
  2. No time zone fields.
  3. No time zone fields. SECOND does not include fractions. Use SECOND_MICROSECOND.