Du kan använda INSERT INTO... SELECT
uttalande om detta,
INSERT INTO tableName (A, B, C)
SELECT A, B, MAX(C) + 1
FROM tableName
GROUP BY A, B
Du kan använda INSERT INTO... SELECT
uttalande om detta,
INSERT INTO tableName (A, B, C)
SELECT A, B, MAX(C) + 1
FROM tableName
GROUP BY A, B