title: MySQL INSERT INTO ... VALUES and SELECT
body: <p>Is there a way to insert pre-set values and values I get from a select-query?
  For example:</p>
  
  <pre><code>INSERT INTO table1 VALUES ("A string", 5, [int]).
  </code></pre>
  
  <p>I have the value of "A string" and the number 5, but I've to find the [int] value from a select like this:</p>
  
  <pre><code>SELECT idTable2
  FROM table2
  WHERE ...
  </code></pre>
  
  <p>that gives me that id to put inside table1.</p>
  
  <p>How to merge this into one statement?</p>