select p.attribute1_,p.attribute2_,p.* from app_pay_payment p order by p.attribute1_,regexp_substr(p.attribute2_,'[^0-9]+'),to_number(regexp_substr(p.attribute2_,'[0-9]+'))
上面方法可能有些复杂 ,也可以直接用下面方法
HQL写法:cast(对象属性 as long)
SQL写法:cast(字段名 as number)
select p.attribute1_,p.attribute2_,p.* from app_pay_payment p order by p.attribute1_,regexp_substr(p.attribute2_,'[^0-9]+'),to_number(regexp_substr(p.attribute2_,'[0-9]+'))
上面方法可能有些复杂 ,也可以直接用下面方法
HQL写法:cast(对象属性 as long)
SQL写法:cast(字段名 as number)