SQL - How do I get only the numbers after the decimal?

后端 未结 12 2110
清酒与你
清酒与你 2020-12-03 00:57

How do I get only the numbers after the decimal?

Example: 2.938 = 938

12条回答
  •  感情败类
    2020-12-03 01:14

    Make it very simple by query:

    select substr('123.123',instr('123.123','.')+1, length('123.123')) from dual;
    

    Put your number or column name instead 123.122

提交回复
热议问题