Трюк дня. Номер строки в PostgreSQL. Решение



SELECT

id,

name,

ROW_NUMBER () OVER (ORDER BY id
DESC)

FROM products;



#tips