Skip to content

Commit 3e3dff6

Browse files
authored
Merge pull request ClickHouse#77717 from Blargian/values_format_followup
Docs: improve formatting of values.md
2 parents 14568a7 + 7be54ec commit 3e3dff6

File tree

1 file changed

+19
-13
lines changed
  • docs/en/sql-reference/table-functions

1 file changed

+19
-13
lines changed

docs/en/sql-reference/table-functions/values.md

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ FROM VALUES(
9090
`VALUES` can also be used with single values rather than tuples. For example:
9191

9292
```sql title="Query"
93+
SELECT *
9394
FROM VALUES(
9495
'person String',
9596
'Noah',
@@ -140,8 +141,26 @@ FROM VALUES(
140141
('Mason', 'Venice'),
141142
('Isabella', 'Prague')
142143
)
144+
```
145+
146+
```response title="Response"
147+
┌─c1───────┬─c2────────┐
148+
1. │ Noah │ Paris │
149+
2. │ Emma │ Tokyo │
150+
3. │ Liam │ Sydney │
151+
4. │ Olivia │ Berlin │
152+
5. │ Ilya │ London │
153+
6. │ Sophia │ London │
154+
7. │ Jackson │ Madrid │
155+
8. │ Alexey │ Amsterdam │
156+
9. │ Mason │ Venice │
157+
10. │ Isabella │ Prague │
158+
└──────────┴───────────┘
159+
```
143160

161+
```sql
144162
-- single values
163+
SELECT *
145164
FROM VALUES(
146165
'Noah',
147166
'Emma',
@@ -157,19 +176,6 @@ FROM VALUES(
157176
```
158177

159178
```response title="Response"
160-
┌─c1───────┬─c2────────┐
161-
1. │ Noah │ Paris │
162-
2. │ Emma │ Tokyo │
163-
3. │ Liam │ Sydney │
164-
4. │ Olivia │ Berlin │
165-
5. │ Ilya │ London │
166-
6. │ Sophia │ London │
167-
7. │ Jackson │ Madrid │
168-
8. │ Alexey │ Amsterdam │
169-
9. │ Mason │ Venice │
170-
10. │ Isabella │ Prague │
171-
└──────────┴───────────┘
172-
173179
┌─c1───────┐
174180
1. │ Noah │
175181
2. │ Emma │

0 commit comments

Comments
 (0)