根据我的知识,我的查询是正确的,但是会出错:
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
错误是:
#1465 - 无法在系统表上创建触发器
答案 0 :(得分:1)
只要我担心,您就无法在系统表上创建触发器。