I have this following query:
result: list = queryDatabase('''SELECT * FROM clients WHERE :col = :keyword''', {"col":column, "keyword":keyword})
I want to have the column and the keyword to search for in the database be given as input by the user. The keyword works fine, but I can't seem to get the column name to translate into SQL, so :col should take the value given in the tuple as the second parameter, and search by that column, with the keyword.
I'm using python 3 and sqlite3.