正则表达式:
\b((begin)|(sqlexception)|(start)|(transaction)|(rollback)|(commit)|(create)|(end)|(set)|(in)|(varchar)|(select)|(from)|(where)|(if)|(else)|(then)|(as)|(and)|(limit)|(into)|(insert)|(values)|(update)|(declare)|(while)|(continue)|(handler)|(for)|(not)|(default)|(fetch)|(open)|(sum)|(group by)|(int)|(close)|(cursor)|(do)|(global)|(show)|(like)|(on)|(union)|(using)|(prepare)|(execute)|(deallocate)|(last_insert_id)|(drop)|(temporary)|(duplicate)|(table)|(exists))\b
以Sublime Text 编辑器为例(其它编辑器IDE同理):
先按下CTRL + F查找,使用正则表达式模式,输入以上表达式。然后按下查找所有。
然后按下组合键CTRL + K + U全部转化为大写