I am trying to create the following trigger:
CREATE TRIGGER update_customers AFTER INSERT ON wp_usermeta
FOR EACH ROW
BEGIN
if new.wp_metakey = first_name then insert into test_customer(first_name) values (new.wp_meta_value);
END
I keep getting a 1064 error that says, "You have an error in your SQL syntax; check the manual that corresopons to your MySQL server version for the right syntaxt to use near " at line 5"
What am I doing wrong?