Tips: SQL 取值小数及小数位数

xiaoxiao2021-02-28  87

---查询小数点所在的位置 select instr('12563.26530','.') from dual; ---查询小数部分 select substr('12563.26530',instr('12563.26530','.')+1) from dual; ---查询小数部分的长度 select length(substr('12563.26530',instr('12563.26530','.')+1)) from dual;
转载请注明原文地址: https://www.6miu.com/read-79423.html

最新回复(0)