information_schema.columns.datetime_precision

mysql

type: BIGINT NULL
5.7-8

mariadb

type: NULL
Note:
Fractional-seconds precision, or NULL if not a time data type.
© 2022 MariaDB
5.1-10.8

tidb

type: BIGINT(21) NULL
Note:
For time-type columns, the fractional seconds precision.
© 2022 PingCAP
4-6.1

postgres

type: CARDINAL_NUMBER NULL
Note:
If data_type identifies a date, time, timestamp, or interval type, this column contains the (declared or implicit) fractional seconds precision of the type for this column, that is, the number of decimal digits maintained following the decimal point in the seconds value. For all other data types, this column is null.
© 1996-2022 The PostgreSQL Global Development Group
10-15
type: CARDINAL_NUMBER
Note:
If data_type identifies a date, time, timestamp, or interval type, this column contains the (declared or implicit) fractional seconds precision of the type for this column, that is, the number of decimal digits maintained following the decimal point in the seconds value. For all other data types, this column is null.
© 1996-2022 The PostgreSQL Global Development Group
8.4-9.6
Note:
If data_type identifies a date, time, or interval type, the declared precision; null for all other data types or if no precision was declared.
© 1996-2022 The PostgreSQL Global Development Group
7.4-8.3

cockroachdb

type: unknown
Note:
The precision level of columns with data type TIME/TIMETZ, TIMESTAMP/TIMESTAMPTZ, or INTERVAL. For all other data types, this column is NULL.
© 2022 CockroachDB
21.1-21.2
Note:
New in v20.2: The precision level of columns with data type TIME/TIMETZ, TIMESTAMP/TIMESTAMPTZ, or INTERVAL. For all other data types, this column is NULL.
© 2022 CockroachDB
20.1-20.2
Note:
Always NULL (unsupported by CockroachDB).
© 2022 CockroachDB
1-19.2

mssql

type: SMALLINT NULL
Note:
Subtype code for datetime and ISO interval data types. For other data types, NULL is returned.
© Microsoft 2022
aps-pdw-2016-sql-server-ver15