You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[GROUP BY {{col_name | expr | col_alias | col_position}, ...
@@ -22,6 +23,7 @@ SELECT
22
23
[OFFSET row_count]
23
24
[IGNORE_RESULT]
24
25
]
26
+
]
25
27
```
26
28
27
29
:::tip
@@ -41,6 +43,47 @@ SELECT number FROM numbers(3);
41
43
+--------+
42
44
```
43
45
46
+
### EXCLUDE Parameter
47
+
48
+
Excludes one or more columns by their names from the result. The parameter is usually used in conjunction with `SELECT * ...` to exclude a few columns from the result instead of retrieving them all.
49
+
50
+
```sql
51
+
SELECT*FROM allemployees ORDER BY id;
52
+
53
+
---
54
+
| id | firstname | lastname | gender |
55
+
|----|-----------|----------|--------|
56
+
| 1 | Ryan | Tory | M |
57
+
| 2 | Oliver | Green | M |
58
+
| 3 | Noah | Shuster | M |
59
+
| 4 | Lily | McMent | F |
60
+
| 5 | Macy | Lee | F |
61
+
62
+
-- Exclude the column "id" from the result
63
+
SELECT* EXCLUDE id FROM allemployees;
64
+
65
+
---
66
+
| firstname | lastname | gender |
67
+
|-----------|----------|--------|
68
+
| Noah | Shuster | M |
69
+
| Ryan | Tory | M |
70
+
| Oliver | Green | M |
71
+
| Lily | McMent | F |
72
+
| Macy | Lee | F |
73
+
74
+
-- Exclude the columns "id" and "lastname" from the result
0 commit comments