GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • DOCUMENTATION
  • Tutorials
  • Developer
  • SQL Reference
  • Integrations
  • Releases
  • Data Types
  • Boolean
  • Binary
  • String
  • Numeric
  • Decimal
  • Date & Time
  • Interval

This view

  • Original page
  • New address

GeezerVison is showing docs.databend.com — String | Databend

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 │
└──────────────────┘
Did this page help you?
Yes
FeedBack
Raise issue
Join our growing community
GitHub
🌟 9.5K Stars
Slack
X(Twitter)
YouTube
Or simply contact us directly
Contact Us
Explore Databend Cloud
  • String Data Types
  • Functions
  • Example
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
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.