Oracle笔记二

一.数据库语言分类

 二.DML之数据插入

把一个表中的数据查询出来插入另外一个表中。

create table student(id number,name varchar2(20),age number);

insert into student select id,name,age from student1;

insert into student select * from student as of timestamp(sysdate-5/1440);          sysdate  Oracle当前系统时间

insert into student select * from student as of timestamp to_Date('2016_09_11 9:00:00','yy-mm-dd hh24:mi:ss');

三.DML之数据删除

Oracle数据库中可以使用truncate table 来删除数据。

如:truncate table student;

 select object_name,original_name,type,ts_name,createtime,droptime from recyclebin;       从垃圾站中回收表。

 select * from "BIN$5Uy5P0S3SY.....";                                                                         "BIN$5Uy5P0S3SY....."    object_name

 purge recyclebin;                           清空回收站;

四.论数据完整性

原文地址:https://www.cnblogs.com/yuxiaona/p/5865811.html