Du kan bruge en multiple tabel UPDATE
erklæring for at gøre dette:
http://dev.mysql.com/doc/refman/5.0 /da/update.html
UPDATE items i1
JOIN items i2
ON i1.color = i2.color
AND i1.texture = i2.texture
AND i2.type IS NOT NULL
SET i1.type = i2.type
WHERE i1.type IS NULL