I can't seem to find the proper way to do this. Basically, I want to search a database of people by name (whole or part).
Here's my setup:
name = str(raw_input("Enter name..."))
Assuming that the table is called people, and there is a column "name", how would I write this query using the library?
My attempt:
curs.execute("SELECT * FROM people WHERE people.name LIKE \"%:nm%\";", {"nm":name})
But it returns len(result) == 0
when I know the query with a fixed value between the wildcards returns something, so I'm not really sure what's going on here.