Let's say we have this query:
query = "SELECT surname FROM set_payment WHERE surname = %s"
mycursor.execute(query,("Smith",))
If we have the surname 'Smith' for example in our table it should print Smith. Is there a way to search for something by searching a part of it? For example, if a search for Sm to print all surnames that contain the letters 'Sm'?