Skip to content

Commit

Permalink
docs: Add select...into to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmrDeveloper committed Aug 12, 2024
1 parent 90706ff commit f1c60e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/statement/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,11 @@ SELECT COUNT() FROM tags JOIN branches
SELECT COUNT() FROM tags LEFT JOIN branches ON commit_count > 1
SELECT COUNT() FROM tags RIGHT JOIN branches ON commit_count > 1
```

### Select ... INTO

You can export the query result into external file using the syntax `INTO OUTFILE <File>`

```sql
SELECT name FROM branches INTO OUTFILE "branches.txt"
```

0 comments on commit f1c60e2

Please sign in to comment.