extract(… from <datetime>)
BigQuery
Db2 (LUW)
MariaDB
MySQL
Oracle DB
PostgreSQL
SQL Server
SQLite
2005
2007
2009
2011
2013
2015
2017
2019
2021
2023
⊘ 3.5.7 - 3.50.0
⊘ 2008R2 - 2022
✓ 14 - 18
c
✓ 8.3 - 13
c
✓ 11gR1 - 23.26.0
⚠ 5.6 - 9.5.0
b
d
⚠ 5.0 - 5.5
a
b
⚠ 5.3 - 12.0.2
b
d
⚠ 5.1 - 5.2
a
b
⚠ 9.7 - 12.1.2
a
⚠ 2.0
a
b
No time zone fields
SECOND
does not include fractions
Returns approximate numeric type
SECOND
does not include fractions. Use
SECOND_MICROSECOND