Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20de1a0

Browse files
committed
More documentation
1 parent d7e3edd commit 20de1a0

File tree

10 files changed

+138
-10
lines changed

10 files changed

+138
-10
lines changed

src/SUMMARY.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
- [CREATE]()
1010
- [DELETE]()
1111
- [Functions](./functions.md)
12-
- [CAST]()
12+
- [CAST](./functions/CAST.md)
1313
- [CONVERT]()
14-
- [CASE]()
15-
- [IIF]()
16-
- [IFNULL]()
17-
- [NULLIF]()
18-
- [LEFT]()
19-
- [RIGHT]()
20-
- [UPPER]()
21-
- [LOWER]()
14+
- [IIF](./functions/IIF.md)
15+
- [IFNULL](./functions/IFNULL.md)
16+
- [NULLIF](./functions/NULLIF.md)
17+
- [LEFT](./functions/LEFT.md)
18+
- [RIGHT](./functions/RIGHT.md)
19+
- [UPPER](./functions/UPPER.md)
20+
- [LOWER](./functions/LOWER.md)
2221
- [Additional Information]()
2322
- [Database Types](./other/databases.md)
2423
- [Data Types]()

src/functions/CASE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/functions/CAST.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# CAST
2+
Return `$1` [casted](./concepts/casting.md) to `$A`
3+
4+
## Syntax
5+
```SQL
6+
CAST($1 AS $A)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
May be anything
13+
14+
### `$A`
15+
Should be a [type name](./other/types.md)

src/functions/IFNULL.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
11
# IFNULL
2+
If `$1` is `NULL`, return `$2`, else return `$1`.
3+
4+
## Syntax
5+
```SQL
6+
IFNULL($1, $2)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
May be anything
13+
14+
### `$2`
15+
May be anything
16+
17+
18+
## Same as
19+
```SQL
20+
IIF($1 IS NULL, $2, $1)
21+
```

src/functions/IIF.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,27 @@
11
# IIF
2+
If `$1`, return `$2`, else return `$3`.
3+
4+
## Syntax
5+
```SQL
6+
IIF($1, $2, $3)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
Should evaluate to a [boolean](./other/types.md#boolean)
13+
14+
### `$2`
15+
May be anything
16+
17+
### `$3`
18+
May be anything
19+
20+
21+
## Same as
22+
```SQL
23+
CASE
24+
WHEN $1 THEN $2
25+
END $3
26+
END
27+
```

src/functions/LEFT.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# LEFT
2+
If `$1` has more than `$2` characters, return the left-most `$2` characters. Else return `$1`.
3+
4+
## Syntax
5+
```SQL
6+
LEFT($1, $2)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
Should evaluate to a [string](./other/types.md#text)
13+
14+
### `$2`
15+
Should evaluate to an [integer](./other/types.md#unsigned_integer)

src/functions/LOWER.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
11
# LOWER
2+
Return `$1` with all characters in lowercase.
3+
4+
## Syntax
5+
```SQL
6+
LOWER($1)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
Should evaluate to a [string](./other/types.md#text)

src/functions/NULLIF.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
11
# NULLIF
2+
If `$1` equals `$2`, return `NULL`, else return `$1`.
3+
4+
## Syntax
5+
```SQL
6+
NULLIF($1, $2)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
May be anything
13+
14+
### `$2`
15+
May be anything
16+
17+
18+
## Same as
19+
```SQL
20+
IIF($1 = $2, NULL, $1)
21+
```

src/functions/RIGHT.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
# RIGHT
2+
If `$1` has more than `$2` characters, return the right-most `$2` characters. Else return `$1`.
3+
4+
## Syntax
5+
```SQL
6+
LEFT($1, $2)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
Should evaluate to a [string](./other/types.md#text)
13+
14+
### `$2`
15+
Should evaluate to an [integer](./other/types.md#unsigned_integer)

src/functions/UPPER.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
11
# UPPER
2+
Return `$1` with all characters in lowercase.
3+
4+
## Syntax
5+
```SQL
6+
UPPER($1)
7+
```
8+
9+
## Parameters
10+
11+
### `$1`
12+
Should evaluate to a [string](./other/types.md#text)

0 commit comments

Comments
 (0)