NathanFriend.co.uk

MySQL compare tables and find non matching records

by Nathan Friend on Feb.07, 2010, under Programing

MySQLmysql> SELECT table1.* FROM table1
-> LEFT JOIN table2 ON table1.id=table2.id
-> WHERE table2.id IS NULL;


Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!