Udo is correct in the fact that you can not use JQL for anything else than select queries.
The following page explains how you can run your sql commands directly in the HSQL database:
I hope this helps you out.
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot