Emacs-24 sql.el has a built-in module! Just run M-x sql-set-product MySQL RET, and the syntax table will be configured automatically, as well as keywords for blocking fonts for all additional reserved words and types, interactive mode, etc. Etc. Brilliant!!
If you look under SQLin the menu bar, you can use the submenu Productto select MySQL.
You can also M-x customize-variable sql-product RETinstall the default product from ANSI.
source
share