select length(to_char(24,'00')) from dual 值怎么为3?? select length(to_char(24,'00')) from dual 值怎么为3??
应该是2把
------解决方案-------------------- Because the resulf of follwing sql is ' 24': select to_char(24,'00') from dual;
You can use another method: select lengthb(to_char(24)) from dual;
------解决方案-------------------- http://www.itpub.net/thread-404943-1-1.html 可以参考这个
然后看看这四个的结果
SQL code
select length(trim(to_char(24,'00'))) from dual
select length(to_char(24,'00')) from dual
select to_char(24,'00') from dual
select to_char(24,'fm00') from dual
------解决方案--------------------