|
|
|
String deleteDuplicates = String.format("DELETE FROM %s WHERE %s IN (SELECT %s.%s FROM %s, %s AS t2 WHERE %s.%s < t2.%s AND %s.%s = t2.%s AND %s.%s > 0 GROUP BY %s.%s",
|
|
|
|
String deleteDuplicates = String.format("DELETE FROM %s WHERE %s IN (SELECT %s.%s FROM %s, %s AS t2 WHERE %s.%s < t2.%s AND %s.%s = t2.%s AND %s.%s > 0 GROUP BY %s.%s)",
|
|
|
|
table, id, table, id, table, table, table, id, id, table, remoteId, remoteId, table, remoteId, table, id);
|
|
|
|
table, id, table, id, table, table, table, id, id, table, remoteId, remoteId, table, remoteId, table, id);
|