1

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

Adam Azad
  • 11,171
  • 5
  • 29
  • 70
user2129623
  • 2,167
  • 3
  • 35
  • 64

1 Answers1

1

As long as I'm concerned, you can't create triggers on system tables.

See mysql: Cant we create triggers on system tables? for more information.

Community
  • 1
  • 1
Minoru
  • 1,680
  • 3
  • 20
  • 44