Is it possible to make the order of output the same as the order of input parameters?

Поиск
Список
Период
Сортировка
Hi,

I have a simple query like:

SELECT * FROM customer WHERE id IN (23, 56, 2, 12, 10)

The problem is that I need to retrieve the rows in the same order as the set of ids provided in the select statement. Can it be done?

Thanks


В списке pgsql-general по дате отправления: