Home > Database > Mysql Tutorial > body text

Oracle date如何比较大小分析

WBOY
Release: 2016-06-07 17:55:37
Original
1841 people have browsed it

本文将详细介绍Oracle date如何比较大小,需要了解更多的朋友可以参考下

Sql代码
代码如下:
-- Created on 2010/04/17 by NAN
declare
-- Local variables here
i integer;
v_date1 DATE;
v_date2 DATE;
begin
-- Test statements here
v_date1 := SYSDATE;
v_date2 := to_date( '2008-09-08');
IF v_date1 > v_date2 THEN
dbms_output.put_line( 'if');
ELSE
dbms_output.put_line( 'else');
END IF;
end;
Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!