这是我的代码
select len(cast(code as float)),code
from tbl1
where code is not null
这是输出:
我想要代码栏中的位数。
我不明白为什么最后一个算12而不是8?
将其投射为int
反而:
select len(cast(code as int)), code
from tbl1
where code is not null;
据推测,某种十进制值正在被计算。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)