Hello! Tell me how to use the operator IN
There is such a request "UPDATE order SET Cut_Mission_Id =% s WHERE Id IN (% s)"
Did so
query = "UPDATE `order` SET Cut_Mission_Id = %s WHERE Id IN %s" args = (5, (5, 6)) cursor.execute(query, args) So
query = "UPDATE `order` SET Cut_Mission_Id = %s WHERE Id IN (%s)" args = (5, "5, 6") cursor.execute(query, args) In the first case, the query does not work, in the second case only one digit is transmitted and there is only one line (it should be 2). Did not find how to do it! Help!