PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Query consoles

Last modified: 21 December 2022

Available only in PyCharm Professional: download to try or compare editions

Query or database consoles are SQL files in which you can compose and execute SQL statements. Unlike scratch files, consoles are attached to a data source. You can use a query console in the same way as you use a terminal. Just type and run your code.

When you create a data source, a query console is created automatically. If necessary, you can create additional consoles. Each console creates a new connection. If you do not want to create new connections, enable single session mode.

For information about working with query results in query consoles, refer to Query results.

Language and Framework-Specific Guidelines