Skip to main content

String

String Data Types

In Databend, strings can be stored in the VARCHAR field.

Data TypeSyntax
StringVARCHAR

Functions

See String Functions.

Example

mysql> CREATE TABLE string_table(text VARCHAR);

mysql> DESC string_table;
+-------+--------+------+---------+
| Field | Type | Null | Default |
+-------+--------+------+---------+
| text | String | NO | |
+-------+--------+------+---------+

mysql> INSERT INTO string_table VALUES('databend');

mysql> SELECT * FROM string_table;
+----------+
| text |
+----------+
| databend |