how to do something only if a query is true in python sqlite3 code example Example: sqlite check if row exists SELECT EXISTS(SELECT 1 FROM myTbl WHERE u_tag="tag");