当前位置:Gxlcms > 数据库问题 > oracle

oracle

时间:2021-07-01 10:21:17 帮助过:3人阅读

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

可以访问了

oracle

标签:备份   sys   ant   bsp   pareto   number   ret   大于   用户   

人气教程排行