Du kan bruge INSERT INTO... SELECT
udtalelse herom,
INSERT INTO tableName (A, B, C)
SELECT A, B, MAX(C) + 1
FROM tableName
GROUP BY A, B
Du kan bruge INSERT INTO... SELECT
udtalelse herom,
INSERT INTO tableName (A, B, C)
SELECT A, B, MAX(C) + 1
FROM tableName
GROUP BY A, B