首页 > Linux操作系统 > Linux操作系统 > 这2种索引有什么区别
big和small表的结构是一样的
create table big as select * from dba_objects;
create table small as select * from dba_objects;
alter table big modify object_id null;
create index idx_big on big(object_id);
create index idx_small on small(object_id)
不知道这个idx_big和idx_small有什么区别?
有区别,not null和可以为null的区别,在某些情况下
相同语句,smal ltable全表扫描,而big table走索引扫描
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13165828/viewspace-607551/ ,如需转载,请注明出处,否则将追究法律责任。