compare tables in the same database without using mysqldump using mysql workbench

Followup question to
http://www.experts-exchange.com/Database/MySQL/Q_28239833.html

I want to compare many tables without looking at a mysql dump file
because it is difficult to compare inserts using mysql dump file
LVL 1
rgb192Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jrm213jrm213Commented:
Hi,

How exactly do you want to compare them?
0
Aaron TomoskySD-WAN SimplifiedCommented:
select * from table1 where not exists (select * from table2)

FYI it's slow. If you can choose certain columns or filter rows with additional where clauses it goes much faster.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgb192Author Commented:
select * from table1 where not exists (select * from table2)
select * from table2 where not exists (select * from table1)

I tried this in many tables and only get null results

okay sqlyog installed trial states they compare
0
rgb192Author Commented:
I think there is something wrong with my table

this
select * from table1 where not exists (select * from table2)
should work

thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.