# SQLite-tools\*

{% hint style="info" %}
**OBSERVERA:** SQLite-tools gör så att SQLite extension inte fungerar.
{% endhint %}

## Installation

Det finns ingen installations-exefil att ladda ner; allt som finns på SQLites nerladdningssida är en zipfil med exe-filer.

Det enklaste sättet att installera SQLite-tools på en dator så att sqlite3-kommandot kan köras från vilken mapp som helst är antagligen att göra det via [Chocolatey](https://community.chocolatey.org/).

```
choco install sqlite -y
```

## Kommandon

### .open

Öppnar en databasfil (skapar den om den inte finns), och gör så att man kan arbeta mot den genom att skriva [databaskommandon](/sqlite/kommandon.md).

```
.open gamedata.sqlite
```

### .save

Om man inte öppnat en databas med .open men ändå börjar skriva kommandon, så körs kommandona på en databas som bara finns i programmets minne och som förstörs när det stängs av. Med .save sparas databasen till en fil.

```
.save school.sqlite
```

### .tables

Skriver ut en lista med de tabeller som finns i databasen som är öppnad.

### .schema

### .headings

### .exit


---

# 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://db.progdocs.se/sqlite/installera-sqlite-verktyg/sqlite-tools.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.
