当前位置:Gxlcms > mysql > to_char()多了个字符

to_char()多了个字符

时间:2021-07-01 10:21:17 帮助过:41人阅读

sp.param_value nvarchar2(200); select sp.param_code, to_number(sp.param_value), sp.param_value,length(param_value) 为什么to_char不行呢? 不带格式的是3个字符 难怪查不到数据呢!! 而这种直接单引号就行 所以 and sp.param_value = trim(to_char(0

sp.param_value nvarchar2(200);

select sp.param_code, to_number(sp.param_value), sp.param_value,length(param_value)

为什么to_char不行呢?

不带格式的是3个字符

难怪查不到数据呢!!

而这种直接单引号就行

所以 and sp.param_value = trim(to_char(0.78,'0.00')) 就行了

人气教程排行