---
title: "oracle获取当前时间转化成年月日格式"
author: "cserw3c"
date: "2014-03-14T15:49:31Z"
tags: []
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2014-03-14T15:49:31Z"
id: 2031196
url: "https://solomon2012.iteye.com/blog/2031196"
---

```
select to_char(sysdate,'yyyy')||'年'||to_char(sysdate,'mm')||'月'||to_char(sysdate,'dd') ||'日' as riqi from dual
```