摘要: Oracle日期函数用于对Oracle数据库中的日期及时间进行处理,下面就为您详细介绍Oracle日期函数的用法,希望对您能有所启迪。(1)SYSDATE和TRUNC两个Oracle日期函数取Oracle服务器系统的日期和截掉小数部分的功能。观察以下操作:create table test_date (name varchar2(20), p_date date);insert into test_date values(‘name1’,sysdate);select * from test_date;select * from test_date where p_date=’25-10月-0 阅读全文
posted @ 2013-04-16 11:35 hello_dba 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Oracle中的Union、Union All、Intersect、Minus众所周知的几个结果集集合操作命令,今天详细地测试了一下,发现一些问题,记录备考。假设我们有一个表Student,包括以下字段与数据:drop table student;create table student(id int primary key,name nvarchar2(50) not null,score number not null);insert into student values(1,'Aaron',78);insert into student values(2,'Bi 阅读全文
posted @ 2013-04-16 10:44 hello_dba 阅读(150) 评论(0) 推荐(0) 编辑