You should be able to “MINUS” or “EXCEPT” depending on the flavor of SQL used by your DBMS.
select * from tableA
minus
select * from tableB
If the query returns no rows then the data is exactly the same.
More Related Contents:
- Is there any rule of thumb to construct SQL query from a human-readable description?
- How can I list the tables in a SQLite database file that was opened with ATTACH?
- In MySQL queries, why use join instead of where?
- Doing a WHERE .. IN subquery in Doctrine 2
- Transpose latest rows per user to columns
- Is there any boolean type in Oracle databases?
- Physical vs. logical (hard vs. soft) delete of database record? [closed]
- SQLite – ORDER BY RAND()
- The Next-gen Databases [closed]
- Splitting the string in sql server
- Need to list all triggers in SQL Server database with table name and table’s schema
- What is the purpose of constraint naming
- How can I do a BEFORE UPDATED trigger with sql server?
- Drop all tables command
- How to find a table having a specific column in postgresql
- Deferrable Constraints in SQL Server
- can we list all tables in msaccess database using sql?
- INSERT COMMAND :: ERROR: column “value” does not exist
- Comma separated values in a database field
- Can SQL Server Express LocalDB be connected to remotely?
- What can cause an Oracle ROWID to change?
- SQL: Using NULL values vs. default values
- Why don’t DBMS’s support ASSERTION
- How do I change db schema to dbo
- PostgreSQL how to create a copy of a database or schema?
- Query a Table’s Foreign Key relationships
- Historical / auditable database
- Postgres: convert single row to multiple rows (unpivot)
- How to store a list in a db column
- Copy table structure to new table in sqlite3