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