本文将详细介绍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;
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