create or replace table accounttransactions ( id int auto_increment primary key, accountId int not null, transactionId int not null, coins int null, gems int null ) charset=latin1; create or replace index accountId on accounttransactions (accountId); create or replace index transactionId on accounttransactions (transactionId);