We Recommend

SQL Cookbook SQL Cookbook
Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbook is sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbook moves quickly from problem to solution, saving you time each step of the way.


Posted By

zingo on 02/01/08


Tagged

mysql sql diff


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

melling
uisluu


Differences between two Tables


Published in: SQL 


URL: http://blog.256bit.org/archives/441-Den-Unterschied-zwischen-2-Tabellen-herausfinden.html

  1. SELECT 'tabelle1' Tabelle, a.* FROM (
  2. SELECT * FROM tabelle1
  3. MINUS
  4. SELECT * FROM tabelle2
  5. ) a
  6. UNION
  7. SELECT 'tabelle2' Tabelle, b.* FROM (
  8. SELECT * FROM tabelle2
  9. MINUS
  10. SELECT * FROM tabelle1
  11. ) b

Report this snippet 

You need to login to post a comment.