zoukankan      html  css  js  c++  java
  • 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;                           清空回收站;

    四.论数据完整性

  • 相关阅读:
    初中几何
    角平分线导致的三角形内外角关系
    解方程
    初中|数学题目整理
    求一次函数解析式
    整式的四则运算
    分式方程
    做辅助线的方法
    线段相等的证明思路
    python2.7安装sqlite3模块
  • 原文地址:https://www.cnblogs.com/yuxiaona/p/5865811.html
Copyright © 2011-2022 走看看