以下是从JAVAEYE中找到的代码,用途是将小数 转换为百分数形式:
Select CONCAT(TO_CHAR('0.001'*100,'990.99'),'%') FROM DUAL;
除此之外,还找到了其余的转换,放到这里留作日后之用:
select to_char(1234567.89,'9,999,999.99') id from dual;
select to_char(1234567.89,'999,999,999.99') id from dual;
select to_char(1234567.89,'009,999,999.9900') id from dual;
select to_char(1234567.89,'9.99EEEE') id from dual;
select to_char(1234567.89,'999999.99EEEE') id from dual;
select to_char(-1234567.89,'999,999,999.99PR') id from dual;
标签:格式化,1234567.89,百分数,999,char,dual,oracle,id,select From: https://blog.51cto.com/u_16230604/7554063