How to get a single result from a SQL query in python? July 29, 2023 by Tarik I think you’re looking for Cursor.fetchone() : cursor.fetchone()[0]