0

I want to know how something like this work, cause i didnt find a answer, i want to search for a specific column where both the column and the row are a variables

def read_from_db(Var1, Var2):
    cursor.execute("select ? from user where dc_id =?", (Var1, Var2,))
    for row in cursor.fetchall():
        return(row)

Error: sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type.

0 Answers0