We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0abaddd commit 4c3bb3aCopy full SHA for 4c3bb3a
scripts/settings/arithmetic-functions.sql
@@ -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