[mysql]: index key generation moved to separated statements in a query (include primary, unique and simple index)