M
M
MdaUZH2016-01-25 12:41:59
PHP
MdaUZH, 2016-01-25 12:41:59

How to get update SQL result?

Hello everyone, the question is mb and delusional, but I would not want to pile up crutches.
In general, I do:
UPDATE ... liked = liked - 1
How to get liked?
without making an additional request is it possible?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2016-01-25
@MdaUZH

In mysql, no way. Additional request only.
In the same postgresql - update ... returning

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question