event not working properly in mysql -


i have created following event adding foreign key constraint tables when restart mysql server,but not adding foreign key constraint when start mysql server.

create event event1   on schedule every 1 s  begin  alter table cele_details add constraint cele_details_ibfk_1 foreign key(cid) references cele_names(cid) on delete cascade on update cascade;  alter table movie_ratings add constraint movie_ratings_ibfk_1 foreign key(mid) references movies(mid) on delete cascade on update cascade;  alter table movie_details add constraint movie_details_ibfk_1 foreign key(mid) references movies(mid) on delete cascade on update cascade;  alter table music_details add constraint music_details_ibfk_1 foreign key(music_id) references music(music_id) on delete cascade on update cascade;  end    

is there problem event.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -