title: How to execute plain SQL in typo3 version 10 ($GLOBALS['TYPO3_DB']->sql_query())?
body: <p>Is there a way to execute plain SQL in typo3 version 10? How can I do this?</p>
  
  <pre><code>// in previous versions you could do the following
  $sql = 'SELECT * FROM tt_content;';
  $GLOBALS['TYPO3_DB']-&gt;sql_query($sql);
  while ($row = $GLOBALS['TYPO3_DB']-&gt;sql_fetch_assoc($res)) {
    // ...
  }
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>The simple script <code>SELECT * FROM tt_content</code> is only a placeholder. I want do some special migrations or some special requests for my statistic page.</p>