title: Injecting into DELETE query
body: <p>I'm a student (not hacker) and I have to inject the following query on mysql database:</p>
  
  <pre><code>DELETE FROM users WHERE username='X'
  </code></pre>
  
  <p>where X is my injection string.</p>
  
  <p>I cannot use ; since stacked queries is blocked in MySql + PHP.</p>
  
  <p>After googling I figured out there is a command OUTPUT which outputs the deleted queries,
  but in order to use that I have to close the previous query somehow.
  I tried something like this:</p>
  
  <pre><code>DELETE FROM users WHERE username='' and DELETE FROM users OUTPUT DELETED.*
  </code></pre>
  
  <p>but it didn't work. If it was two select queries I could've used UNION but they aren't...</p>
  
  <p>Any ideas?</p>
  
  <p>edit:</p>
  
  <p>I would like to see the rows in the tables, I dont care to delete them or not as long as I see them.</p>