摘要: 【转】ORACLE to_char函数详解 转自:http://wisebo.bokee.com/viewdiary.15801227.htmlThe following are number examples for the to_char function.to_char(1210.73, '9999.9')would return '1210.7'to_char(1210.73, '9,99... 阅读全文
posted @ 2009-06-04 09:44 asia 阅读(693) 评论(0) 推荐(0) 编辑
摘要: trunc实际上是truncate函数,字面意思是截断,截尾。函数的功能是将数字进行截断。例如 tranc(1234.5678,2)的结果为1234.5600。tranc()并不四舍五入。再举例: tranc(1234.5678,0)的结果为1234.0000;tranc(1234.5678,-2)的结果为1200.0000。 阅读全文
posted @ 2009-06-04 09:40 asia 阅读(910) 评论(0) 推荐(0) 编辑