Skip to content

Commit 4c3bb3a

Browse files
committed
add new file for arithmetic functions
1 parent 0abaddd commit 4c3bb3a

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
WITH arithmetic_functions AS (
2+
SELECT
3+
name,
4+
introduced_in,
5+
syntax,
6+
arguments,
7+
returned_value,
8+
examples
9+
FROM system.functions WHERE categories='Arithmetic'
10+
)
11+
SELECT
12+
format(
13+
'{}{}{}{}{}{}',
14+
'## ' || name || ' ' || printf('{#%s}', name) || '\n\n',
15+
'Introduced in: v'||introduced_in||'\n\n',
16+
'### Syntax {#syntax}\n\n'||printf('```sql\n%s\n```', syntax)||'\n\n',
17+
'### Arguments {#arguments}\n\n'||arguments||'\n',
18+
'### Returned value {#returned_value}\n\n'||returned_value||'\n\n',
19+
'### Examples {#examples}\n\n'||examples||'\n\n'
20+
)
21+
FROM arithmetic_functions
22+
INTO OUTFILE 'arithmetic-functions.md' TRUNCATE FORMAT LineAsString

0 commit comments

Comments
 (0)