Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
10
Task/Function-definition/DuckDB/function-definition-2.duckdb
Normal file
10
Task/Function-definition/DuckDB/function-definition-2.duckdb
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
create or replace function power2(n) as (
|
||||
with recursive cte as (
|
||||
select 0 as i, 1::UHUGEINT as p
|
||||
union all
|
||||
select i+1 as i, p*2 as p
|
||||
from cte
|
||||
where i < n )
|
||||
select last(p order by i)
|
||||
from cte
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue