Is it possible to run and execute a query when the cursor is at the end of a SQL file?

Answered

When my cursor is at the end of a SQL file and I run the keyboard command to Execute (cmd + enter), DataGrip doesn't seem to recognize anything. Even if I don't have any semicolons at the end, I can't get DG to recognize any SQL statement.

Is there a setting I can change to allow this? Or would this have to be a feature requested?

2 comments
Comment actions Permalink

Play around with available options (Settings -> Database -> General -> Execute in Console section) to get desired execution behaviour:

0
Comment actions Permalink

Awesome thanks.

You want "otherwise execute" to be "whole script"

0

Please sign in to leave a comment.