Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6738955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:25:48+00:00 2026-05-26T11:25:48+00:00

I have two SQLite (also MySQL could be fine) databases with same table structures

  • 0

I have two SQLite (also MySQL could be fine) databases with same table structures but different datas and I have to get all rows from one and check, one by one, if they’re exactly (same data) contained in the second one.

I need to do this for having a final yes/no/partial report (and in second step, insert in the second database the “no” and update the “partial”).

Anyone know if is there a “smart” method to do this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T11:25:49+00:00Added an answer on May 26, 2026 at 11:25 am
    SELECT COUNT(*) num_mismatch
    FROM table1 JOIN table2 ON (..whatever the unique ID you use for matching is...)
    WHERE table1.col1 != table2.col1 OR table1.col2 != table2.col2 OR ......etc.
    

    If num_mismatch is not 0 you have mismatches. You can also change COUNT(*) to output the IDs that don’t match. It’s also possible to use NOT EXISTS and return a bit faster if there are mismatches since it will stop checking after the first mismatch.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two references to a SQLite assembly, one for 32-bit and one for
I have an objective-c application for OS X that compares two sqlite DB's and
I have NSTableView with two columns, and i wanna fill them entries from SQLite
I have two identical tables and need to copy rows from table to another.
Ok, I have two Android projects both running the same API level. In one,
I have a table called person and it contains two fields, name (TEXT) and
I have a question. My case study is that I have two big SQLite
I have created an SQLite FTS3 table that I am using within the Android
C# (.NET 3.5) I have an SQLite database with two tables - employees (the
I open a sqlite database and use rawquery to get data. But the log.e

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.