Home  >  Article  >  Database  >  SQL取正数小数的位数

SQL取正数小数的位数

WBOY
WBOYOriginal
2016-06-07 14:55:151348browse

取正数小数的位数 无 select LEN(CAST((99.9999-floor(99.9999)) AS VARCHAR))-2

取正数小数的位数
select LEN(CAST((99.9999-floor(99.9999)) AS VARCHAR))-2
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn