---
schema_version: "1"
id: 664253ed4dc24f0b8b0b5fec021acdea0a4325e7ee72cdd69849018f2682a77e
title: Developer Console Query Editor
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/code_dev_console_tab_query_editor.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.code_dev_console_tab_query_editor.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a24c1a0fe3e6835f631094ca02c1500499de2f057771c84f0f03f1472f6d1ab0
description: You can use the Query Editor in the Developer Console to execute a SOQL query or SOSL search on the data in your organization. A SOQL query retrieves data from a single object or multiple related objects in the database. You can execute a SOQL query immediately after data is added to the database. A SOSL query is a free-form text search that retrieves multiple related or unrelated objects and fields. Using SOSL, you can retrieve data for a specific term that exists within a field. And, SOSL can tokenize multiple terms to find relevant records. It can take several minutes for data to be indexed before you can execute a query and get results.
products:
  - Salesforce Platform
release: "264"
---
# Developer Console Query Editor

You can use the **Query Editor** in the Developer Console to execute a SOQL query or SOSL search on the data in your organization. A SOQL query retrieves data from a single object or multiple related objects in the database. You can execute a SOQL query immediately after data is added to the database. A SOSL query is a free-form text search that retrieves multiple related or unrelated objects and fields. Using SOSL, you can retrieve data for a specific term that exists within a field. And, SOSL can tokenize multiple terms to find relevant records. It can take several minutes for data to be indexed before you can execute a query and get results.

In the Developer Console Query Editor, the History pane displays your last 10 queries for quick reuse. Results are displayed in a Query Results grid, in which you can open, create, update, and delete records. For SOSL search results with multiple objects, each object is displayed on a separate tab.

![Query Editor tool in the Developer Console](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-extend_code-264-0-0-production-enus/789bc523-706b-4ae4-8fe9-be6322e38b6b/extend_code/images/code_dev_console_query_editor.png)

- **[Execute a SOQL Query or SOSL Search](https://help.salesforce.com/s/articleView?id=platform.code_dev_console_tab_query_editor_soql_sosl.htm&release=264.0.0&type=5)**  
    Execute SOQL queries or SOSL searches in the Query Editor panel of the Developer Console.
- **[Retrieve Query Plans](https://help.salesforce.com/s/articleView?id=platform.code_dev_console_tab_query_editor_query_plans.htm&release=264.0.0&type=5)**  
    Use the Query Plan tool to optimize and speed up queries done over large numbers of records. View query plans for SOQL queries, reports, and list views. If custom indexes are available for your organization, use query plans to help you decide when to request a custom index from Salesforce Support.
- **[Query Results Grid](https://help.salesforce.com/s/articleView?id=platform.code_dev_console_tab_query_editor_query_results_grid.htm&release=264.0.0&type=5)**  
    The Query Results grid displays each record as a row. You can create, update, and delete records without leaving the Developer Console. For SOSL search results with multiple objects, each object is displayed on a separate tab.

#### See Also

- [Developer Console Functionality](https://help.salesforce.com/s/articleView?id=platform.code_system_log.htm&release=264.0.0&type=5 "The Developer Console can help with many of your development tasks.")