duplicate records remove sql server code example Example: how to avoid duplicate records in sqlite INSERT OR REPLACE INTO MAIN (...) VALUES (...)