File tree Expand file tree Collapse file tree 1 file changed +19
-13
lines changed
docs/en/sql-reference/table-functions Expand file tree Collapse file tree 1 file changed +19
-13
lines changed Original file line number Diff line number Diff 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 *
9394FROM 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 *
145164FROM 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 │
You can’t perform that action at this time.
0 commit comments