coba:
insert into aTable select max(a)^2, 'name' from aTable;
atau
insert into aTable select max(a)^2, 'name' from aTable group by B;
Jika Anda perlu bergabung, Anda dapat melakukan ini:
insert into aTable select max(a)^2, 'name' from aTable, bTable;
"Versi server" saya adalah "5.0.51b-community-nt MySQL Community Edition (GPL)"