php - How to compare to MySQL tables and display the differences? -


We get a daily feed that is used to populate a MySQL database. I want to see the new feed to compare to the previous one, what has changed, added or removed. I am working in MySQL and PHP How can it be best done in MySQL? I am thinking that it should take the previous feed which is a MySQL table and compare it to a new feed which is also stored as a MySQL table. But how can I do this so that it can achieve the rows that have not been found in the new MySQL table? Thanks!

This can help you:

  SELECT a. * Is not WHERE ROW (a.col1, a.col2, รข ?? |) with `OLD_TABLE_NAME` (SELECT * FROM NEW_TABLE_NAME) UNION ALL SELECT b. * FROM * NEW_TABLE_NAME`b WHERE ROW (BOO1, BOO2, a ??) No (SELECT * FROM OLD_TABLE_NAME)   

Enjoy!

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -