diff --git a/docs/statement/select.md b/docs/statement/select.md index f6c4a29..03dab1f 100644 --- a/docs/statement/select.md +++ b/docs/statement/select.md @@ -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 ` + +```sql +SELECT name FROM branches INTO OUTFILE "branches.txt" +```