Skip to main content

String

String Data Types​

In Databend, strings can be stored in the VARCHAR field, the storage size is variable.

NameAliasesStorage Size
VARCHARSTRINGvariable

Functions​

See String Functions.

Example​

CREATE TABLE string_table(text VARCHAR);
DESC string_table;

Result:

┌──────────────────────────────────────────────┐
│ Field │ Type │ Null │ Default │ Extra │
├────────┼─────────┼────────┼─────────┼────────┤
│ text │ VARCHAR │ YES │ NULL │ │
└──────────────────────────────────────────────┘
INSERT INTO string_table VALUES('databend');
SELECT * FROM string_table;

Result:

┌──────────────────┐
│ text │
├──────────────────┤
│ databend │
└──────────────────┘
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today