Home  >  Article  >  Database  >  oracle当行函数日期

oracle当行函数日期

WBOY
WBOYOriginal
2016-06-07 14:55:171134browse

Oracle内部使用数字存储日期: 世纪,年,月,日,小时,分钟,秒。 默认的日期显示格式为DD-MON-RR。 --可以只指定年的后两位,允许存储21世纪日期在21世纪中。 --同样,允许存储20世纪的日期在21世纪中。 SELECT last_name, hire_date FROM employees WHERE hir

Oracle内部使用数字存储日期: 世纪,年,月,日,小时,分钟,秒。

默认的日期显示格式为DD-MON-RR。

--可以只指定年的后两位,允许存储21世纪日期在21世纪中。
--同样,允许存储20世纪的日期在21世纪中。

SELECT last_name, hire_date
FROM employees
WHERE hire_date

oracle当行函数日期 三联

SELECT last_name, (SYSDATE-hire_date)/7 AS WEEKS
FROM employees
WHERE department_id = 90;

http://www.3lian.com/

http://www.3lian.com/

http://www.3lian.com/

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:判断质数Next article:财政年度表之建表约束