Well, I've learned the syntax for MySQL, and a few other SQL servers via PHP, and after that, I got lazy, and now just use my own database driver system which builds the syntax for me
http://www.sqlcourse.com/index.html I learned from this and it's really useful. w3schools has one as well.
Just thought I would add this page because it looks like it could be useful http://dev.mysql.com/usingmysql/java/