# SQL

Dolt is a full-featured SQL database, akin to [Postgres](https://www.postgresql.org/) or [MySQL](https://www.mysql.com/).

Dolt implements the MySQL SQL dialect. You connect to Dolt using a MySQL client. The goal is for Dolt to be a drop in replacement for MySQL.

Dolt has [databases](/concepts/dolt/sql/databases.md) and [tables](/concepts/dolt/sql/schema.md) as you'd expect. Dolt implements all MySQL [data types](/concepts/dolt/sql/types.md). Dolt supports [secondary indexes](/concepts/dolt/sql/indexes.md). Dolt supports [foreign key and check constraints](/concepts/dolt/sql/constraints.md). Dolt supports [views](/concepts/dolt/sql/views.md), [triggers](/concepts/dolt/sql/triggers.md), and [procedures](/concepts/dolt/sql/procedures.md). Dolt implements [users and grants](/concepts/dolt/sql/users-grants.md) for permissions.

This section of the documentation will explain Dolt's flavor of these standard SQL concepts. Perhaps more importantly, this section will also explain how these concepts interact with Dolt's version control features.

Concepts will be tackled in the following order:

1. [Databases](/concepts/dolt/sql/databases.md)
2. [Schema](/concepts/dolt/sql/schema.md)
3. [Tables](/concepts/dolt/sql/table.md)
4. [Primary Keys](/concepts/dolt/sql/primary-key.md)
5. [Types](/concepts/dolt/sql/types.md)
6. [Indexes](/concepts/dolt/sql/indexes.md)
7. [Views](/concepts/dolt/sql/views.md)
8. [Constraints](/concepts/dolt/sql/views.md)
9. [Triggers](/concepts/dolt/sql/triggers.md)
10. [Procedures](/concepts/dolt/sql/procedures.md)
11. [Users/Grants](/concepts/dolt/sql/users-grants.md)
12. [Transactions](/concepts/dolt/sql/transaction.md)
13. [System Variables](/concepts/dolt/sql/system-variables.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.dolthub.com/concepts/dolt/sql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
