select A.USER_NAME, decode(A.SEX, 1, '男', 2, '女')AS SEX, A.HEAD_PORTRAIT, TRUNC(months_between(sysdate, A.BIRTHDAY) / 12) || '岁' AS BIRTHDAY, Z.DISEAS ...
分类:
数据库 时间:
2016-10-08 16:32:35
阅读次数:
263
select * from emp where to_char(hiredate,'mm')=to_char(add_months( sysdate,2),'mm'); 结果: ...
分类:
其他好文 时间:
2016-09-23 16:42:39
阅读次数:
125
1343. Fairy Tale Time limit: 1.0 secondMemory limit: 64 MB 12 months to sing and dance in a ring their celestial dance. One after another they hold a ...
分类:
其他好文 时间:
2016-09-22 01:15:40
阅读次数:
175
题目链接: http://poj.org/problem?id=2080 Description A calendar is a system for measuring time, from hours and minutes, to months and days, and finally to ...
分类:
其他好文 时间:
2016-09-01 16:19:20
阅读次数:
173
Compromise Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 8209 Accepted: 3546 Special Judge Description In a few months the European Curre ...
分类:
其他好文 时间:
2016-08-26 19:55:50
阅读次数:
137
sysdate 【功能】:返回当前日期。 【参数】:没有参数,没有括号 【返回】:日期 sysdate 【功能】:返回当前日期。 【参数】:没有参数,没有括号 【返回】:日期 2 add_months(d1,n1) 【功能】:返回在日期d1基础上再加n1个月后新的日期。 【参数】:d1,日期型,n1 ...
分类:
数据库 时间:
2016-08-26 18:13:19
阅读次数:
219
一、大小写函数 lower():全部小写upper():全部大写initcap():首字母大写 lower: upper: initcap: 二、字符控制函数 ① Concat--连接字符串 三、日期函数 ① months_between:两个日期相差的月数 ② add_months:向指定日期中加 ...
分类:
数据库 时间:
2016-08-26 18:04:43
阅读次数:
181
select top 10 * from schedule_month where years=2016 and months=7 and managerid=45SELECT top 10 cast(years AS varchar) + '-' + RIGHT('0' + CAST(months ...
分类:
数据库 时间:
2016-08-17 12:01:12
阅读次数:
222
#!/usr/bin/envpython#-*-coding:utf8-*-importsysimportreimporttimeimportosdefmain():months={"jan":1,"Feb":2,"Mar":3,"Apr":4,"May":5,"Jun":6,"Jul":07,"Aug":8,"Sep":9,"Oct":10,"Nov":11,"Dec":12}error=‘请输入正确的时间格式,例如2016-08-0310:00:00‘start=raw_input..
分类:
编程语言 时间:
2016-08-04 00:05:21
阅读次数:
226
add_months函数: add_months(time,months)函数可以得到某一时间之前或之后n个月的时间 如 select add_months(sysdate,-6) from dual; 该查询的结果是当前时间半年前的时间 select add_months(sysdate,6) f ...
分类:
数据库 时间:
2016-08-02 16:32:53
阅读次数:
161