+ -
当前位置:首页 → 问答吧 → 求教 基础题

求教 基础题

时间:2011-10-09

来源:互联网

求教to_char to_number to_date函数实例,多举几个~~~谢谢

作者: hello_cyx   发布时间: 2011-10-09

1、例子:select to_char(sysdata,'yyyy-mm-dd hh-mm-ss') from dual; 

2、to_char()函数对数字的转换 
  to_char(number,'format_modle1') 
  以下是to_char()长使用的格式 
  例子:select to_char(4200.23,'L9,999.00') as allmoney from dual 
3、to_number()函数将字符转换为数字 
  to_number(char,'format_modle1'); 

作者: lzd_83   发布时间: 2011-10-09


官方的联机文档有示例,google 也有。 善用google。 

作者: tianlesoftware   发布时间: 2011-10-09