您现在的位置是:网站首页> 编程资料编程资料
Oracle date如何比较大小分析_oracle_
2023-05-27
445人已围观
简介 Oracle date如何比较大小分析_oracle_
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;
复制代码 代码如下:
-- 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;
您可能感兴趣的文章:
- oracle日期时间型timestamp的深入理解
- oracle SCN跟TIMESTAMP之间转换
- oracle中to_date详细用法示例(oracle日期格式转换)
- ORACLE时间函数(SYSDATE)深入理解
- Oracle to_date()函数的用法介绍
- sqlserver和oracle中对datetime进行条件查询的一点区别小结
- sqlserver中delete、update中使用表别名和oracle的区别
- oracle中UPDATE nowait 的使用方法介绍
- ORACLE SQL-UPDATE、DELETE、INSERT优化和使用技巧分享
- Oracle中TIMESTAMP的几种类型介绍与实例
相关内容
- oracle区管理和段空间管理详细介绍_oracle_
- oracle中截断表的使用介绍_oracle_
- Oracle中serveroutput参数一次设置永久保存方法_oracle_
- Oracle Report中加入下载超链接操作方法_oracle_
- Oracle 11g Release (11.1) 索引底层的数据结构_oracle_
- oracle 11g RAC 常用命令整理分享_oracle_
- oracle if else语句使用介绍_oracle_
- C#利用ODP.net连接Oracle数据库的操作方法_oracle_
- linux oracle数据库删除操作指南_oracle_
- ip修改后orcale服务无法启动问题解决_oracle_
