Maybe i should do this in C# but i have more then one row with linkId X. I would like to remove it but i am unsure how. In code i could just use a foreach from 0 to n and remove any found rows with a greater (or !=) id but thats in code. Is there a less difficult way of doing it using sqlite?
Share
Assuming the table’s name is
tableNameand there is a primary key field namedid, the following sql would do it. I think the following SQL query is general enough and should be able to be executed under any database engine.