- Installation
- Guides
- Data Import & Export
- CSV Import
- CSV Export
- Parquet Import
- Parquet Export
- Query Parquet
- HTTP Parquet Import
- S3 Parquet Import
- Meta Queries
- Python
- SQL Editors
- Documentation
- Connect
- Data Import
- Client APIs
- Overview
- Python
- R
- Java
- C
- Overview
- Startup
- Configure
- Query
- Data Chunks
- Values
- Types
- Prepared Statements
- Appender
- Table Functions
- Replacement Scans
- API Reference
- C++
- Node.js
- Wasm
- CLI
- SQL
- Introduction
- Statements
- Overview
- Select
- Insert
- Delete
- Update
- Create Schema
- Create Table
- Create View
- Create Sequence
- Create Macro
- Drop
- Alter Table
- Copy
- Export
- Query Syntax
- Data Types
- Expressions
- Functions
- Overview
- Numeric Functions
- Text Functions
- Pattern Matching
- Date Functions
- Timestamp Functions
- Time Functions
- Interval Functions
- Date Formats
- Date Parts
- Blob Functions
- Nested Functions
- Utility Functions
- Indexes
- Aggregates
- Window Functions
- Samples
- Information Schema
- Configuration
- Pragmas
- Extensions
- Development
- Sitemap
- Why DuckDB
- FAQ
- Code of Conduct
- Live Demo
Blob Functions
Version 0.3.3
This section describes functions and operators for examining and manipulating blob values.
Function | Description | Example | Result |
---|---|---|---|
blob || blob |
Blob concatenation | '\xAA'::BLOB || '\xBB'::BLOB |
\xAABB |
decode( blob ) |
Convert blob to varchar. Fails if blob is not valid utf-8. | decode('\xC3\xBC'::BLOB) |
ü |
encode( string ) |
Convert varchar to blob. Converts utf-8 characters into literal encoding. | encode('my_string_with_ü') |
my_string_with_\xC3\xBC |
octet_length( blob ) |
Number of bytes in blob | octet_length('\xAABB'::BLOB) |
2 |
Search Shortcut cmd + k | ctrl + k