title: How to avoid double backslash in MySQL's SELECT INTO OUTFILE
body: <p>In MySQL, the following:  </p>
  
  <pre><code>SELECT '\\' INTO OUTFILE 'c:/temp/backslash.dump';
  </code></pre>
  
  <p>writes two backslashes to the file, which makes sense.  </p>
  
  <p>Trying to dump a single backslash, I changed SQL_MODE, like that:</p>
  
  <pre><code>SET SESSION SQL_MODE='NO_BACKSLASH_ESCAPES';
  SELECT '\' INTO OUTFILE 'c:/temp/backslash.dump';
  </code></pre>
  
  <p>but got two backslashes again.</p>
  
  <p>Is there a way to dump a single backslash?</p>