MYSQL Event to update another database table

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-05-05T20:33:49Z Indexed on 2010/05/05 20:38 UTC
Read the original article Hit count: 335

Filed under:
|
|
|

Hey All,

I have just taken over a project for a client and the database schema is in a total mess. I would like to rename a load of fields make it a relationship database.

But doing this will be a painstaking process as they have an API running of it also. So the idea would be to create a new database and start re-writing the code to use this instead. But I need a way to keep these tables in sync during this process.

Would you agree that I should use MYSQL EVENT's to keep updating the new table on Inserts / updates & deletes??

Or can you suggest a better way??

Hope you can advise !!

thanks for any input I get

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php