Ask Your Question
3

Is it possible to use an AFTER DELETE TRIGGER to automatically remove two rows from two separate tables when a user deletes a row from a third table within three different databases located on the same mySQL server?

asked 2022-05-21 11:00:00 +0000

pufferfish gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-04-10 22:00:00 +0000

scrum gravatar image

Yes, it is possible to use an AFTER DELETE TRIGGER to automatically remove two rows from two separate tables when a user deletes a row from a third table within three different databases located on the same mySQL server. However, the syntax and implementation of the trigger will be slightly different compared to when working with a single database. You will need to use fully qualified table names to reference the tables in different databases and make sure that the appropriate permissions are set for the trigger to work across multiple databases.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-05-21 11:00:00 +0000

Seen: 13 times

Last updated: Apr 10 '22