Home > Database > Mysql Tutorial > Oracle 数据库日期比较

Oracle 数据库日期比较

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:09:16
Original
1114 people have browsed it

今天碰到一个问题: DATE 类型 08-11月-09 12.00.00.000000 上午 保存格式如上所述 select * from TBL_FLIGHT t where to_date(s

今天碰到一个问题:

DATE 类型

08-11月-09 12.00.00.000000 上午

保存格式如上所述

select * from TBL_FLIGHT t where to_date(substr(t.FLIGHT_DATE,1,10),'dd-mon-yy')>=to_date('2011-9-1','yyyy-mm-dd')

and to_date(substr(t.FLIGHT_DATE,1,10),'dd-mon-yy')

这样子就好了。

linux

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template