Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex WebSQL
  • Getting started
    • All guides
    • Creating a connection
    • Working with the query editor
    • Analytics and optimization with AI assistant
    • Working with saved queries
    • Working with query history
  • Access management
  • Pricing policy
  • Audit Trails events

In this article:

  • Running a query
  • Pagination
  • Multi-queries
  • Exporting query execution results
  • Setting up the query editor
  1. Step-by-step guides
  2. Working with the query editor

Working with the query editor

Written by
Yandex Cloud
Updated at October 21, 2025
View in Markdown
  • Running a query
  • Pagination
  • Multi-queries
  • Exporting query execution results
  • Setting up the query editor

The query editor opens in the data panel when you select a database, a table, or a view in the Connections section.

Running a queryRunning a query

To run a query to a database, establish or activate a connection with the database.

To build a query:

  1. Under Connections, select a database, table, or image.

  2. In the data panel, you will see a form with the default query:

    SELECT * FROM <table_name> LIMIT 10;
    
  3. Use this query or edit it. The interface will suggest relevant parts of the query and highlight errors.

  4. Click Run.

In the results panel, you will see a table with the query results.

When editing or running a query, you can use the following keyboard shortcuts (click to see the full list):

Windows/Linux
macOS
  • Show suggestions: Ctrl + I , Ctrl + Space.
  • Comment out a line: Ctrl + /.
  • Run a query: Ctrl + Enter.
  • Show suggestions: ⌘ + I , ⌃ + Space.
  • Comment out a line: ⌘ + /.
  • Run a query: ⌘ + ⏎.

Click Open Command Palette to view a complete list of available commands and their corresponding keyboard shortcuts.

You can view your executed queries in query history and save them as templates.

PaginationPagination

You can use pagination in the query editor to manage result outputs. With pagination, you can:

  • Switch between pages:

    • : First page
    • : Previous page
    • : Next page
    • : Last page
  • Select the number of rows displayed per page. To do this, click the field with the number of rows (between the arrows) and select the appropriate limit.

  • Get the total number of rows by clicking Total rows.

Each action you take with pagination re-runs the query and is logged in the query history.

Multi-queriesMulti-queries

In the query editor, you can use multi-queries, enabling you to run multiple queries as a single batch. These queries are executed within a single database session.

Multi-query example:

SELECT * FROM <table_1_name> LIMIT 10;
INSERT INTO <table_2_name>;

To run individual subqueries within a multi-query, highlight one or more subqueries and click Run current query. The editor will display the progress status of the highlighted queries.

Exporting query execution resultsExporting query execution results

To save the results in a format you like:

  1. Click Export in the top-right corner of the panel with the results table.
  2. Select the format: JSON,CSV or TSV.

A file with the results will be added to your browser's downloads section.

Setting up the query editorSetting up the query editor

Yandex WebSQL enables you to quickly edit your queries, including with features, such as context help or SQL syntax and error highlighting. To manage these features:

  1. Click Settings in the bottom-left corner.
  2. Go to the Query editor section.
  3. Customize the editor theme (Visual Studio or High Contrast), font size and type, and the following editing feature options:
    • Editor tips
    • Syntax highlighting
    • Error highlighting
    • Editor minimap
    • Autoclosing of quotes
    • Autoclosing of parentheses

ClickHouse® is a registered trademark of ClickHouse, Inc.

Was the article helpful?

Previous
Deleting a connection
Next
Analytics and optimization with AI assistant
© 2026 Direct Cursus Technology L.L.C.