I wanna select data from table with ordering where first I’ll get values with specific value.
I tried this but it didn’t work:
SELECT name FROM test ORDER BY id ='d189463e-52dc-40e5-adf7-eddce74cf05e';
I wanna select data from table with ordering where first I’ll get values with specific value.
I tried this but it didn’t work:
SELECT name FROM test ORDER BY id ='d189463e-52dc-40e5-adf7-eddce74cf05e';
2
Answers
use a case expression This allows you to define whatever "ordering" you want for the IDs
I would write
or
because
FALSE < TRUE
.