DataGrip 2018.3 Help

Run SQL script files

Run an SQL file

  1. Right-click the necessary data source.

  2. Select Run SQL Script.

  3. In the Select Path window, navigate to the SQL file that you want to apply.

db run sql file

Run an SQL file for several data sources

  1. Select the necessary SQL file in the Files tool window.

  2. Right-click the SQL file, select Run <file_name> (or press Ctrl+Shift+F10).

  3. In the Execution target window, select the necessary data sources.


Run individual statements

  1. Open an SQL file in DataGrip.

  2. Click the statement that you want to execute. If you want to execute more than one statement, select (highlight) the necessary statements.

  3. Press Ctrl+Enter or select Execute from the context menu.

  4. Select the database console where you want to execute the statement.

run individual statements
Last modified: 6 February 2019