How to Use SQLAlchemy 2.0 to Execute Plain SQL Queries in Python

Learn the latest ways to run SQL queries in Python

Lynn G. Kwong
Python in Plain English
6 min readMay 4, 2024

--

Image by Maklay62 on Pixabay

SQLAlchemy 2.0 has been officially released for some time now and should be used for new projects, rather than the legacy versions as many useful improvements have been added. In this post, we will introduce how to execute plain SQL queries in SQLAlchemy 2.0 with simple…

--

--

I’m a Software Developer (https://medium.com/@lynn-kwong) keen on sharing thoughts, tutorials, and solutions for the best practice of software development.