Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

語法

PRQL 語法摘要:

語法用法範例
|管道from employees | select first_name
=指派from e = employees
derive total = (sum salary)
:具名引數和參數interp low:0 1600 sat_score
{}值組{id, false, total = 3}
[]陣列[1, 4, 3, 4]
+!&&==運算子filter a == b + c || d >= e
()括號derive celsius = (fht - 32) / 1.8
\換行1 + 2 + 3 +
\ 4 + 5
1100_0005e10數字derive { huge = 5e10 * 10_000 }
''""字串derive name = 'Mary'
truefalse布林值derive { Col1 = true }
nullNullfilter ( name != null )
@日期和時間@2021-01-01
` `引用的識別符號select `first name`
#註釋# A comment
==join 中的自相等join s=salaries (==id)
->函式定義let add = a b -> a + b
=>Case 語句case [a==1 => c, a==2 => d]
+-排序順序sort {-amount, +date}
??合併amount ?? 0