SQLite4Unity3d icon indicating copy to clipboard operation
SQLite4Unity3d copied to clipboard

delete duplicate rows from table. Not Working!

Open mubeenfahmed opened this issue 6 years ago • 1 comments

I am trying to delete duplicate records from table, using following query, but its not working.

Delete FROM users GROUP BY name, email HAVING COUNT(*) > 1

It just throw following errors: SQLiteException: near "count": syntax error. SQLiteException: near "group": syntax error SQLiteException: near "having": syntax error

what should I do, Need Help!

mubeenfahmed avatar Apr 23 '18 06:04 mubeenfahmed

You should be using % as wildcard not * if i'm not mistaken.

Salbrox avatar May 11 '18 19:05 Salbrox