use*_*837 5 sql t-sql sql-server count
这是我的代码
select len(cast(code as float)),code
from tbl1
where code is not null
Run Code Online (Sandbox Code Playgroud)
这是输出:
我想要在代码列中计数数字。我不明白为什么最后一个被计为12而不是8?
将其int
转换为:
select len(cast(code as int)), code
from tbl1
where code is not null;
Run Code Online (Sandbox Code Playgroud)
据推测,某种十进制值正在被计算。