---
title: "oracle 根据日期求星期"
author: "c_c"
date: "2010-11-08T19:41:42Z"
tags: []
categories: ["数据库"]
slug: "oracle"
draft: false
lastmod: "2010-11-08T20:01:19Z"
id: 805924
url: "https://waddy.iteye.com/blog/805924"
---

```
select to_char(SYSDATE,'day') from dual 
--星期一
```

 

```
select to_char(SYSDATE,'dd') from dual  
--08
```

 

```
select to_char(SYSDATE-2,'month') from dual 
--11月
```

 

```
select to_char(SYSDATE-2,'yy-mm') from dual 
--10-11
```