How to update multiple records?

UPDATE meal_tickets SET used=true WHERE barcode_id IN (“12345”, “23456”, “34567”)<

Either this or
UPDATE meal_tickets SET used=true WHERE barcode_id IN (SomeComplicatedQueryWithJoinsAndFunctionsAndViewsAndForeignTablesAndYouNameItReturningJustMealTicketIds)
…works for Deletes too.