⌘K ctrl+k
Search Shortcut cmd + k | ctrl + k
DuckDB 1.3 ドキュメント 全文検索
per page, with , order by , clip by
Results of 1 - 1 of about 1 for cond (0.001 sec.)
CASE Expression – DuckDB 9414
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 ... Live Demo Documentation / SQL / Expressions Copy Markdown CASE Expression The CASE expression performs a switch based on a condition. The basic form is identical to the ternary condition used in many programming languages ( CASE WHEN cond THEN a ELSE ... b END is equivalent to cond ? a : b ). With a single condition this can be expressed with IF(cond, a, b) . CREATE OR REPLACE TABLE integers AS SELECT ... FROM integers ; i test 1 0 2 0 3 1 This is equivalent to: SELECT i , IF ( i > 2 , 1 , 0 ) AS test FROM integers ; The WHEN cond THEN expr part of the CASE expression can be chained, whenever any of the conditions returns true for a single tuple, the ...
https://man.mtool.work/duckdb/1.3/sql/expressions/case.html
PREV 1 NEXT
DuckDB 1.3 Documentation / man.mtool.work