Inline Table

    • expression

    • table_alias

      Syntax:

    1. -- single row, without a table alias
    2. SELECT * FROM VALUES ("one", 1);
    3. +----+----+
    4. +----+----+
    5. | one| 1|
    6. +----+----+
    7. SELECT * FROM VALUES ("one", 1), ("two", 2), ("three", null) AS data(a, b);
    8. +-----+----+
    9. | a| b|
    10. +-----+----+
    11. | one| 1|
    12. |three|null|
    13. +-----+----+
    14. -- complex types with a table alias
    15. SELECT * FROM VALUES ("one", array(0, 1)), ("two", array(2, 3)) AS data(a, b);
    16. +---+------+
    17. | a| b|
    18. +---+------+
    19. |one|[0, 1]|
    20. |two|[2, 3]|