K
K
kirillinyakin2021-01-06 01:24:01
PostgreSQL
kirillinyakin, 2021-01-06 01:24:01

How can you update the last row in Postgresql?

How can only update the last row in Postgresql?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BorLaze, 2021-01-06
@kirillinyakin

Something like this

update TABLE
set FIELD = VALUE
where id = (select max(id) from TABLE);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question