I have set up a custom keyboard shortcut for Run, Run Selection, and Run current query, thusly:
You can see I have F5 linked to all 3, which [I know] doesn't really make sense. But what I'm trying to achieve is behavior similar to MySQL Workbench and SQL Server Management Studio - which is this:
- If you don't select/highlight anything, and run the query, it will run ALL STATEMENTS in the window.
- If you select/highlight any statement and run the query, it will run only that statement.
By default, HeidiSQL doesn't seem to work that way, so I went down this path of setting custom keyboard shortcuts.
So to my question: How do I set my F5 keystroke shortcut such that when nothing is selected/highlighted, it executes all statements in the query window? And when I highlight a statement and hit F5, it executes only what is highlighted?
Thank you in advance for advice.