I'm trying to write a very simple trigger for MySQL using phpmyadmin 4.0.8, what I want to do, is after a table called 'upload' is inserted into, I take the username, and id and put it into a second table called 'rating'
This is what I'm trying,
CREATE TRIGGER copy_pid AFTER INSERT on upload FOR EACH ROW BEGIN
INSERT INTO rating (uid,pid) VALUES (NEW.username,NEW.id);
END;
I get an "#1064 - You have an error in..."