MindsDB home pagelight logodark logo
Overview
  • Introduction
  • Overview
Data Unification
  • Knowledge Bases
  • Tables, Views, and Files
  • Projects
Data Transformation
  • Custom Functions
  • Standard SQL Support
    • Standard Functions
    • CTEs
    • CASE WHEN
Data Automation
  • Jobs
  • Triggers
MindsDB home pagelight logodark logo
  • Slack
  • GitHub
  • Website
  • Watch Video
  • Watch Video
Documentation
Connect
Unify
Respond
MCP API
SDKs & APIs
Contribute
FAQs
Documentation
Connect
Unify
Respond
MCP API
SDKs & APIs
Contribute
FAQs
  • Slack
  • GitHub
  • Website
  • Watch Video
  • On this page
    • DuckDB Functions
    • MySQL Functions
    Standard SQL Support

    Standard Functions

    MindsDB supports standard SQL functions via DuckDB and MySQL engines.

    ​
    DuckDB Functions

    MindsDB executes functions on the underlying DuckDB engine. Therefore, all DuckDB functions are supported within MindsDB out of the box.
    • Aggregate Functions
    • Array Functions
    • Bitstring Functions
    • Blob Functions
    • Date Format Functions
    • Date Functions
    • Date Part Functions
    • Enum Functions
    • Interval Functions
    • Lambda Functions
    • List Functions
    • Map Functions
    • Nested Functions
    • Numeric Functions
    • Pattern Matching
    • Regular Expressions
    • Struct Functions
    • Text Functions
    • Time Functions
    • Timestamp Functions
    • Timestamp with Time Zone Functions
    • Union Functions
    • Utility Functions
    • Window Functions

    ​
    MySQL Functions

    MindsDB executes MySQL-style functions on the underlying DuckDB engine. The following functions have been adapted to MySQL-style functions. String functions:
    • CHAR
    • FORMAT
    • INSTR
    • LENGTH
    • LOCATE
    • SUBSTRING_INDEX
    • UNHEX
    Date and time functions:
    • ADDDATE
    • CURDATE
    • CURTIME
    • DATE_ADD
    • DATE_SUB
    • DATEDIFF
    • DAYNAME
    • DAYOFMONTH
    • DAYOFWEEK
    • DAYOFYEAR
    • EXTRACT
    • FROM_DAYS
    • FROM_UNIXTIME
    • TIMESTAMPDIFF
    Other functions:
    • REGEXP_SUBSTR
    • SHA2

    Was this page helpful?

    Suggest editsRaise issue
    VariablesCTEs
    githubfacebooktwitterslacklinkedinyoutubemedium
    Powered by Mintlify
    Assistant
    Responses are generated using AI and may contain mistakes.