Is there something like lint (syntax checking and validator) for SQL?
There is a project: SQLLint - detection of semantic errors in SQL queries , but I'm not sure how good this is.
I personally like the HeidiSQL editor. It is lightweight and free.