---
title: "（转）分转成元"
author: "leon1509"
date: "2012-05-23T17:53:58Z"
tags: ["Oracle"]
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2012-05-23T17:54:32Z"
id: 1538902
url: "https://leon1509.iteye.com/blog/1538902"
---

分转成元，如果为空则默认为0

```sql
select '￥'||trim(to_char(nvl(560,0)/100, '99,999,990.00')) amt from dual
```