Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -0,0 +1,14 @@
|
|||
create or replace function list_join(lst, joiner) as (
|
||||
with recursive cte as (
|
||||
select 0 as ix, '' as s
|
||||
union all
|
||||
select ix+1 as ix,
|
||||
if (s = '', '', s || joiner) || lst[ix+1]::VARCHAR) as s
|
||||
from cte
|
||||
where ix < length(lst)
|
||||
)
|
||||
select last(s)
|
||||
from cte
|
||||
);
|
||||
|
||||
select list_join(range(1,11), ', ');
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
for i = 1, 10 do
|
||||
io.write(i)
|
||||
io.write(i < 10 ? ", " : "\n")
|
||||
end
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
?# i =: from 1 upto 10
|
||||
print i nonl
|
||||
? i = 10
|
||||
?> \ break loop
|
||||
print ', ' nonl
|
||||
print ''
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
for i = from 1 upto 10
|
||||
print i nonl
|
||||
if i = 10
|
||||
break
|
||||
print ', ' nonl
|
||||
print ''
|
||||
Loading…
Add table
Add a link
Reference in a new issue