The program I am working on has a poorly designed backend and basically there are two different tables needed to hold the exact same information. I am trying to write a trigger
I have the feeling that you are compiling .sql as .sh
the trigger is .sql and should be executed using
mysql-batch-commands.html
p.s. What @Johan says is obviously correct as well
p.s.2 Now I see another error: you will need a delimiter between the drop and create statements