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 4427545 commit 82124baCopy full SHA for 82124ba
documentation/reference/sql/declare.md
@@ -248,7 +248,21 @@ FILL(NULL);
248
```questdb-sql
249
INSERT INTO trades SELECT * FROM
250
(
251
- DECLARE @x := now(), @y := 'ETH-USD'
+ DECLARE
252
+ @x := now(),
253
+ @y := 'ETH-USD'
254
SELECT @x as timestamp, @y as symbol
255
);
256
```
257
+
258
+### CREATE TABLE AS SELECT
259
260
+```questdb-sql
261
+CREATE TABLE trades AS (
262
263
264
265
+ SELECT @x as timestamp, @y as symbol, 123 as price
266
+);
267
+```
268
0 commit comments