MySQL compare 2 table match columns

i have two tables Table1 and Table2 each with different column names but housing the same data.  Table 1 has a primary key called MLNUM and Table 2 has a primary key called MLSNUMBER for example but both contain a record with a matching value for their columns example: 201104995.

If I use a value that is found in both tables as the primary key (example: 201104995)  how can I compare the two tables and get the names of columns where the data matches for that record in each table..

For example, if I use 201104995, I can manually match up that column City in Table1 and column ListingCity in Table2 as both have the same data.

There is close to 100 columns in each table so this is very hard to do manually.  How can save some work and do this with a query?
pda4meAsked:
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.

pda4meAuthor Commented:
to clarify, I want to see out put like this

Table1-columnName-->Table2-columnName-->Matching Data
0
Aaron TomoskySD-WAN SimplifiedCommented:
You could dynamically pull the column name like this:
http://forums.mysql.com/read.php?143,282509,284806#msg-284806

I know you can also "Order by 1" where 1 is the first column but I don't think you can "select 1 from tablename".
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
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.