1CREATE TEMPORARY TABLE toptemp (
2    page,
3    month,
4    lang,
5    value,
6    PRIMARY KEY(page, month)
7);
8
9INSERT INTO toptemp (page, month, lang, value) SELECT page, '', '', value FROM toppages;
10
11DROP TABLE toppages;
12
13CREATE TABLE toppages (
14    page,
15    month,
16    lang,
17    value,
18    PRIMARY KEY(page, month)
19);
20
21INSERT INTO toppages (page, month, lang, value) SELECT page, month, lang, value FROM toptemp;
22
23DROP TABLE toptemp;
24