⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 1.3 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 3 of about 3 for mood (0.002 sec.)
Enum Data Type – DuckDB 11849
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... n the fly during casting : SELECT 'some_string' :: ENUM ( value_1 , value_2 , ...); Examples Creates new user defined type mood as an enum: CREATE TYPE mood AS ENUM ( 'sad' , 'ok' , 'happy' ); Create an enum from a select statement. First create an e ... te a table with a column that references the enum. Creates a table person , with attributes name (string type) and current_mood (mood type): CREATE TABLE person ( name TEXT , current_mood mood ); Inserts tuples in the person table: INSERT INTO person ... , 'happy' ), ( 'Mark' , NULL ), ( 'Pagliacci' , 'sad' ), ( 'Mr. Mackey' , 'ok' ); The following query will fail since the mood type does not have quackity-quack value. INSERT INTO person VALUES ( 'Hannes' , 'quackity-quack' ); The string sad is cast ...
https://man.mtool.work/duckdb/1.3/sql/data_types/enum.html
Enum Functions – DuckDB 8557
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... ctions and operators for examining and manipulating ENUM values . The examples assume an enum type created as: CREATE TYPE mood AS ENUM ( 'sad' , 'ok' , 'happy' , 'anxious' ); These functions can take NULL or a specific value of the type as argument( ... rray. enum_code(enum_value) Description Returns the numeric value backing the given enum value. Example enum_code('happy'::mood) Result 2 enum_first(enum) Description Returns the first value of the input enum type. Example enum_first(NULL::mood) Resu ... lt sad enum_last(enum) Description Returns the last value of the input enum type. Example enum_last(NULL::mood) Result anxious enum_range(enum) Description Returns all values of the input enum type as an array. Example enum_range(NUL ...
https://man.mtool.work/duckdb/1.3/sql/functions/enum.html
CREATE TYPE Statement – DuckDB 7478
This page is for DuckDB 1.3, which is outdated. Switch to the current version . Search Shortcut cmd + k | ctrl + k Installation Documentation Getting Started Connect Overview Concurrency Data Import Overview Data Sources CSV Files Overview ... YPE Statement The CREATE TYPE statement defines a new type in the catalog. Examples Create a simple ENUM type: CREATE TYPE mood AS ENUM ( 'happy' , 'sad' , 'curious' ); Create a simple STRUCT type: CREATE TYPE many_things AS STRUCT ( k INTEGER , l VA ... e Create types defines clause support Documentation Statements Copy Markdown Statement statement new type catalog Examples mood sad curious many things thing number alias index Syntax 関連するページ CREATE SCHEMA Statement Enum Data Type Nested Funct ...
https://man.mtool.work/duckdb/1.3/sql/statements/create_type.html
PREV 1 NEXT
DuckDB 1.3 Documentation / man.mtool.work