---
title: Querying Data | Datasquirel docs
description: Learn how to query data in Datasquirel using SQL
page_title: Querying Data
page_description: Use SQL to read, insert, update, and delete data in your Datasquirel databases.
---

## Overview

Datasquirel is built on MariaDB, so all standard SQL query syntax works as expected. You can run queries directly from the [admin panel SQL shell](/docs/gui-reference) or through the [REST API](/docs/api-reference/sql).

<div className="w-full grid grid-cols-1 gap-4 items-stretch">
    <DocsCard
        title="SELECT"
        description="Retrieve data from one or more tables."
        href="/docs/database-reference/querying-data/select"
    />
    <DocsCard
        title="INSERT"
        description="Add new rows to a table."
        href="/docs/database-reference/querying-data/insert"
    />
    <DocsCard
        title="UPDATE"
        description="Modify existing rows in a table."
        href="/docs/database-reference/querying-data/update"
    />
    <DocsCard
        title="DELETE"
        description="Remove rows from a table."
        href="/docs/database-reference/querying-data/delete"
    />
</div>

## Running Queries

You have two options for executing SQL queries:

**Admin Panel SQL Shell** — navigate to any database in the admin panel and open the SQL shell. Type your query and run it. Results appear in a table below the editor.

**REST API** — POST any SQL string to the `/api/v1/sql` endpoint and receive results as JSON. See [API Reference → SQL](/docs/api-reference/sql).
