Answer the question
In order to leave comments, you need to log in
How to translate this query from MySQL to PostgreSQL?
There is a request:
SET @i=0;
SELECT * FROM (
SELECT *, @i:[email protected]+1 AS 'place'
FROM test
ORDER BY score DESC
) t1
WHERE id = 1;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question