How to check the existence of a row in SQLite with Python?
Posted
by fx
on Stack Overflow
See other posts from Stack Overflow
or by fx
Published on 2010-03-13T21:42:37Z
Indexed on
2010/03/13
21:55 UTC
Read the original article
Hit count: 134
I have the cursor with the query statement as follows:
cursor.execute("select rowid from components where name = ?", (name,))
I want to check for the existence of the components: name and return to a python variable. How do I do that?
© Stack Overflow or respective owner