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

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

How do I get only the numbers after the decimal?

Example: 2.938 = 938

12条回答
  •  余生分开走
    2020-12-03 01:04

    X - TRUNC(X), works for negatives too.

    It would give you the decimal part of the number, as a double, not an integer.

提交回复
热议问题