title: How can I check (My)SQL statements for syntactical correctness
body: <p>we're currently setting up out integration server and during that process we've set up pre-commit hooks on the SVN so that our developers can't check in files that are syntactically invalid (primarily PHP and XML).</p>
  
  <p>We also have a bunch of .sql files (for MySQL) which I'd like to lint as well. Unfortunately, Google didn't turn up anything useful for this task.</p>
  
  <p>Any ideas?</p>