Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

postgresql custom order by

ORDER BY array_position(array['Nails','Bolts','Washers','Screws','Staples','Nuts'], s.type)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #postgresql #custom #order
ADD COMMENT
Topic
Name
3+2 =