PyCharm 2016.3 Help

Running Injected SQL Statements

You can inject an SQL statement into a string literal (see Using Language Injections) 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 /help/img/idea/intentionBulb.png 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.

See Also

Language and Framework-Specific Guidelines:

Last modified: 23 November 2016