Using SQL in PyCharm

PyCharm allows us to write, edit, and run SQL commands within a console. In addition to being able to work with the console as a simple text file, PyCharm users also have the added bonus of code completion and syntax checking when using the console.

Let's see an example of this by following the steps mentioned here:

  1. First, to open the console in our PyCharm workspace, click on the Jump to Console icon from the toolbar of the Database panel as illustrated here:
Opening a database console
  1. If there is more than one available console within your project, select the one that corresponds to the database that you would like ...

Get Hands-On Application Development with PyCharm now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.