tldr/pages/common/dolt-sql.md

13 lines
294 B
Markdown
Raw Normal View History

2022-10-11 03:38:54 +01:00
# dolt sql
> Run an SQL query. Multiple SQL statements must be separated by semicolons.
2022-10-11 03:38:54 +01:00
> More information: <https://docs.dolthub.com/cli-reference/cli#dolt-sql>.
- Run a single query:
`dolt sql --query "{{INSERT INTO t values (1, 3);}}"`
- List all saved queries:
`dolt sql --list-saved`