PyCharm 2017.3 Help

Running Injected SQL Statements

This feature is only supported in the Professional edition.

The following is only valid when Database Tools and SQL Plugin is installed and enabled!

You can inject an SQL statement into a string literal and then run that statement:

  1. In the editor, place the cursor within the corresponding string literal.
  2. Do one of the following:
    • Press Ctrl+Enter.
    • Press Alt+Enter and select Run query in console.
    • Click intentionBulb and select Run query in console.
  3. If asked, select the database console to be used.
  4. If the statement contains parameters, specify the parameter values.
Last modified: 28 March 2018

See Also

Language and Framework-Specific Guidelines: