information_schema.attributes.character_maximum_length

mysql

mariadb

tidb

postgres

type: CARDINAL_NUMBER NULL
Note:
If data_type identifies a character or bit string type, the declared maximum length; null for all other data types or if no maximum length was declared.
© 1996-2022 The PostgreSQL Global Development Group
10-15
type: CARDINAL_NUMBER
Note:
If data_type identifies a character or bit string type, the declared maximum length; null for all other data types or if no maximum length was declared.
© 1996-2022 The PostgreSQL Global Development Group
8.2-9.6

cockroachdb

mssql