I am creating an application in which I need to delete a table row with a specific row number. I don’t want to use or rely on the identifier, because if I delete the line, the following lines will not “shift” - line 8 today may be line 7 tomorrow, but line 8 will still have identifier 8.
How to write postgres SQL that essentially does this:
DELETE FROM Table
WHERE <row_number> = n;
And row_number is not a real attribute.
user138351
source
share