title: Is there a command to test an SQL query without executing it? ( MySQL or ANSI SQL )
body: <p>Is there anything like this:<br>
  <code>TEST DELETE FROM user WHERE somekey = 45;</code>  </p>
  
  <p>That can return any errors, for example that somekey doesn't exist, or some constraint violation or anything, and reporting how many rows would be affected, but not executing the query?<br>
  I know you can easily turn any query in a select query that has no write or delete effect in any row, but that can lead to errors and it's not very practical if you want to test and debug many queries.  </p>