title: How to generate random chars and insert with MySQL?
body: <blockquote>
    <p><strong>Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2498310/inserting-random-characters-to-mysql-database">Inserting random characters to MYSQL Database</a>  </p>
  </blockquote>
  
  
  
  <p>How can I generate 100 records with 5 random characters and insert into the database with a query.  </p>
  
  <p>I want to insert into this table:</p>
  
  <pre><code>codes
    id (auto-increment)
    codes
  </code></pre>