Postgresql – Using psycopg2 placeholders
I have the following code: query = "SELECT * FROM appointments WHERE service IN %s AND location LIKE '%London%'" values = (services,) # services is a tuple of strings. cur.execute(query, values) When I execute this code I get the following…