Skip to main content

STRING

Description​

A variable-length string. In the checked Core 26.1.3 implementation, the compiled default soft length limit is 10485760 bytes (10 MiB), and the upper bound is 2147483643 bytes (approximately 2 GiB). The service manages string_type_length_soft_limit_bytes. Contact VeloDB Cloud support if your workload needs a different limit. The effective warehouse setting can differ from the compiled default. STRING can only be used in value columns, not in key, partition, or bucket columns.

Strings use UTF-8 encoding. ASCII characters occupy 1 byte each, and most common Chinese characters occupy 3 bytes each.

Keywords​

STRING

Type aliases and metadata display​

STRING and TEXT define the same type. Different interfaces display that type differently:

InterfaceDisplay for a STRING column
SHOW CREATE TABLE and DESCtext
information_schema.columns.DATA_TYPEvarchar, for MySQL compatibility
information_schema.columns.COLUMN_TYPEstring

These names do not change the stored type or its length limit. To distinguish a STRING column from a length-limited VARCHAR column in metadata, check COLUMN_TYPE.