ÈçºÎ°ÑÆäËûÕâ¸öÈ˷ŵ½×îºó±ß²é³öÀ´·Åµ½listÀï ÔÙ½øÐÐÅÅÐò¾Í¿ÉÒÔÁË ±ðÔ½×öÔ½Âé·³ ±¾Éí¾Í·Åµ½listÖÐ select * from (select * from table where id != 4 order by id) union all select * from table where id = 4 union all oracleÖÐÄÜÓÃÂ𣿠union all ¾ÍÊÇÔÚORACLEÀïÓõģ¬ÐÔÄÜÒ²¸ß °¢ÃÀ¸æËßÎÒ£º Õâ±¾ÉíÊÇÒ»¸öºÜ²»ÓѺõĶ«¶«¡£
select id, case when id=4 then 999 else id end as order_id name from table order by order_id Óô洢¹ý³Ì²»¾ÍºÃÁË£¬»òÕßÖ±½Ó2Ìõsql µ±È»£¬ÓÃunion allÒ²²»´í