TOTAL 0 |
NEW+CHG 0 |
NEW 0 |
CHANGED 0 |
TOTAL 0 |
NEW+CHG 0 |
NEW 0 |
CHANGED 0 |
# | Column 1 | Column 2 | Mapping Type |
---|
KS DB Merge online Table Diff is a tool designed to compare database tables and query results. Simply paste query results from your database client (SSMS, DBeaver, pgAdmin, etc.) and get the diff result in terms of database table rows identified by their primary key column values. Table columns are automatically mapped by name or by column number. One or more column pairs can be selected as a key. Input tables can also be uploaded as files in CSV format.
Click to see how it works:
Here:
Paste from clipboard to the specified panel. The values delimiter (tab, comma, or semicolon) is auto-detected, and the first row is considered a header with column names.
Paste from clipboard with settings - opens the Data format settings popup to configure the Paste action. In that popup, you can explicitly specify the delimiter and other options and preview the first rows of the parse result (see Data format settings popup below).
Open CSV file to the specified panel. Also opens the Data format settings popup to configure file reading.
Clear table - clears data in the specified panel.
Help - opens this Help popup.
Show all, only new and changed, only new, or only changed rows - filter rows to show only required change type.
Column mapping - opens Column mapping configuration (see Column Mapping Popup below).
Open one or two CSV files - allows opening two CSV files at once, showing Data format settings for the first file and then for the second one. This is the same as opening these files one by one.
Clear both tables - clears data in both panels.
Preview - first 5 rows of the result.
Delimiter - column values delimiter (tab, comma, or semicolon).
First row is a header - if not, columns are named as Column 1, Column 2, etc.
Skip empty lines - skip lines having no content.
Skip comments - skip lines starting with # or //.
The difference between Map by Name and Map by Number can be demonstrated by the following example. If we have columns A, B, D on the left and A, C, D on the right, then:
Mapping type Key values are validated for being unique when clicking OK. If they are not unique, a warning text appears with the first found duplicate value, and mapping cannot be applied in this case.
Mapping type None cannot be changed for non-mapped columns.
To keep the UI responsive, the application truncates tables having more than 10,000 values. For example, a table with 99 columns and 200 rows will only load 101 rows (101*99 = 9,999). The 102nd row and others are not loaded because it is above our limit of 10,000 values.
The table does not show text longer than 50 characters, but the whole text value is still compared and highlighted if changed. If you hover over such a cell, you will see the whole cell value in the tooltip, but it may still be truncated due to browser tooltip limitations.
Table comparison is performed on the server side; however, your data stays in your browser. Our server receives just some numbers associated with table row values. For example, if you compare a row:
FirstName=John, LastName=Doe
versus
FirstName=John, LastName=Smith
our server-side receives values 0, 1, and 2 instead of 'John', 'Doe', and 'Smith'.