Table structure:
pinfo_spell race | class | spell | active player guid | race | class player_spell guid | spell | active It is necessary to compare the pinfo_spell and player tables for race and class , the matched results should be inserted into the player_spell table by guid (from the player table), spell and active (from the pinfo_spell table). As a result, we need to get data from two tables, combine and transfer them to the third.