You cannot do this with SELECT INTO OUTFILE. This command only creates new files and will not work if the file already exists.
You can add query output to existing files using the command TEEin the MySQL client.
Here, your example adds two query results to a single file with TEE:
TEE ~/TestInput/Results.csv
SELECT *
FROM Results;
SELECT *
FROM Results;
NOTEE
source
share