Originally Posted by
marcelo_20xx
Is pretty much straight, find the trainer, target him and get the npc entry with the command .npc info, then search that entry in the trainer_spells table, you will see that entry in at least 20 rows. Now you can make the following query:
INSERT INTO trainer_spells values ("put here the trainers info values of the columns you want always separated by a comma");
Copy paste the rows and replace the values in the query above. The column names are pretty self explanatory you just need to insert new spells using the existing npc entry and replacing anything else.
And for the quest spells you can also insert them the same way, first look at websites like wowhead to know the spell's id and repeat the process.