title: Adding current time to INTO OUTFILE 'C:/Output/data_.csv'
body: <p>I am looking for a way to add the current time to my filename after every new export. </p>
  
  <p>Current code:</p>
  
  <pre><code>SELECT * INTO OUTFILE 'C:/Output/data_.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\r\n' FROM eloge_collector;
  </code></pre>
  
  <p>What i want to achieve:</p>
  
  <pre><code>SELECT * INTO OUTFILE 'C:/Output/data_2018-05-10-15-14.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\r\n' FROM collector;
  </code></pre>
  
  <p>or something like this.</p>