zoukankan      html  css  js  c++  java
  • 17.08.02

    instead of trigger视图触发器

     

    replace

     

    序列:

    SQL> create sequence test_seq increment by 1 start with 1 maxvalue 1000 nocycle cache 20;

    SQL> create table t1(x int primary key, y int);

    SQL> insert into t1 values (test_seq.nextval, 11);           反复执行

    SQL> select * from t1;

     

    索引:

    主键和唯一性约束自动创建索引:

    SQL> select constraint_name, constraint_type from user_constraints where table_name='EMPLOYEES';

    SQL> select index_name, index_type from user_indexes where table_name='EMPLOYEES';

    SQL> set autot on

    SQL> select last_name from employees where employee_id=100;      走索引

    SQL> select email from employees;                                                            走索引

    SQL> select last_name from employees where salary=2100;                 全表扫描

    SQL> create index emp_salary_ix on employees(salary);

    SQL> select last_name from employees where salary=2100;                 走索引

    SQL> set autot off

    User process:用户进程

    Server process:服务器进程

    Shared pool:共享池

    Library cache:库高速缓存

    Data dict cache:数据字典高速缓存

    Database buffer cache:数据库缓冲区高速缓存

    Redo log buffer cache:重做日志缓冲区

    Parameter file:参数文件

    Password file:口令文件

    Data files:数据文件

    Control files:控制文件

    Redo log buffer cache:重做日志文件

    Archived log files:归档日志文件

    视图:保持数据的独立性

    视图不允许做dml操作

  • 相关阅读:
    初识 Rabbitmq
    Lambda表达式(C语言-gcc编译器)
    二叉树转换成双向链表
    进程的内存分布
    Linux shell之数组
    Ubuntu 使用Gparted工具扩大第一分区方法步骤
    Android源码编译出错解决办法
    IIC总线解析
    VirtualBox Ubuntu虚拟机串口编程
    ubuntu虚拟机上解决克隆github代码慢的方法
  • 原文地址:https://www.cnblogs.com/Zhang-x/p/7394972.html
Copyright © 2011-2022 走看看