SELECT * FROM TAB_NAME

ORDER BY case when regexp_like(SORT, '^([0-9]+)$') then
TO_NUMBER(SORT)
else
999999999
END,
SORT

 

上面那句标准,但是在IBATIS 不能用

select
SORT
from TAB_NAME
order by to_number(regexp_substr(sort,'[0-9]*[0-9]',1)),sort

相关文章:

  • 2022-12-23
  • 2021-12-27
  • 2021-05-16
  • 2021-05-21
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2021-06-07
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案