Logo icon
    • Contents
    • Quick start
    • Concepts
    • For DevOps
    • For Developers
    • For Security Engineers
    • For Contributors
    • Reference
      • YQL
        • Overview
          • Overview
          • Lexical structure
          • Expressions
          • ACTION
          • ALTER ASYNC REPLICATION
          • ALTER GROUP
          • ALTER VIEW
          • ALTER TOPIC
          • ALTER USER
          • ANALYZE
          • CREATE ASYNC REPLICATION
          • CREATE GROUP
          • CREATE OBJECT TYPE SECRET
          • CREATE VIEW
          • CREATE TOPIC
          • CREATE USER
          • COMMIT
          • DECLARE
          • DELETE
          • DROP ASYNC REPLICATION
          • DROP GROUP
          • DROP TABLE
          • DROP VIEW
          • DROP USER
          • GRANT
          • GROUP BY
          • FLATTEN
          • INSERT
          • INTO RESULT
          • JOIN
          • PRAGMA
          • REPLACE
          • REVOKE
          • UPDATE
          • UPSERT
          • VALUES
          • WINDOW
          • Unsupported statements
        • Query plans
      • Compatibility with PostgreSQL
      • Embedded UI
      • Integrations
      • YDB CLI
      • YDB Native SDK
      • Languages and APIs
      • Kafka API
      • Configuration
      • Observability
      • YDB DStool
      • ydbops
      • Docker
    • Recipes
    • Troubleshooting
    • Questions and answers
    • Downloads
    1. Reference
    2. YQL
    3. Syntax
    4. INTO RESULT

    INTO RESULT

    Lets you set a custom label for SELECT.

    Examples

    SELECT 1 INTO RESULT foo;
    
    SELECT * FROM
    my_table
    WHERE value % 2 == 0
    INTO RESULT `Result name`;
    

    Was the article helpful?

    Previous
    INSERT
    Next
    JOIN