आप तालिका के साथ जुड़कर शाब्दिक तालिका बनाने और आइटम अपडेट करने का प्रयास कर सकते हैं:
UPDATE items
JOIN (SELECT 1 as item_id, 50 as views
UNION ALL
SELECT 2 as item_id, 60 as views
UNION ALL
SELECT 3 as item_id, 70 as views
UNION ALL
SELECT 5 as item_id, 10 as views
) as updates
USING(item_id)
SET items.views = updates.views;