CLion 2018.2 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 Project 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.

RunSQLScriptSelectDS

Run individual statements

  1. Open an SQL file in CLion.

  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: 27 November 2018

See Also

Language and Framework-Specific Guidelines: