My query is correct as per my knowledge, but gives error:
CREATE TRIGGER `invite` AFTER INSERT ON `invite_page`
FOR EACH ROW BEGIN
Insert into userpost(userid,url,title,preview,sentiment,time)
values(NEW.userid,NEW.url,NEW.title,NEW.preview,NEW.sentiment,NEW.time);
Insert into urlcontent(userid,url,title,preview,sentiment,time)
values(NEW.userid,NEW.url,NEW.title,NEW.preview,NEW.sentiment,NEW.time);
END
the error is:
#1465 - Triggers can not be created on system tables