Oracle date比较大小
Sql代码 www.2cto.com
— Created on 2010/04/17 by NAN
declare
— Local variables here
i integer;
&nbsoracle账号p; 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;