oracle

Sort
自定义比较器
implments compare 《Student》
compareTo

1.7当中的性能比1.6的要高

分区表

1.改善查询功能
2让表更容易管理
3,便于备份和恢复

数据量大于2GB,已有的数据会有明显的进行划分!

表分区:

create table ordersnew
(
order_id number,
order_date date,
order_total number
)
partition by range(order_date)
(
partition p1 values less than(to_date('2019-09-09','yyyy-mm-dd')),
partition p2 values less than(Maxvalue)
)

insert into ordersnew values(1111,sysdate,200)
insert into ordersnew values(1111,sysdate,200)
select * from ordersnew partition(p1);

 

 

 4.同义词
grant create synonym to SCOTT
GRANT CREATE PUBLIC SYNONYM TO scott;


create synonym ee for SCOTT.emp
create  public synonym tt for SCOTT.emp


  grant select on emp to 具体的用户或者是模式
grant select on emp to public

可以访问了
posted @ 2017-09-17 17:52  liuzhe01  阅读(134)  评论(0编辑  收藏  举报