建表示建立了索引,用pl/sql developer建的
这是建立索引的sql语句
-- Create/Recreate indexes
create unique index 时间 on FX0.CELL_A (TIME)
tablespace SYSTEM
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);可是我查询索引信息时却没有该索引,在sqlplus中用
select * from user_indexes where table_name='FX0.CELL_A'
查询,显示'未选定行‘。大家帮帮忙!
索引sqloracle
这是建立索引的sql语句
-- Create/Recreate indexes
create unique index 时间 on FX0.CELL_A (TIME)
tablespace SYSTEM
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
minextents 1
maxextents unlimited
);可是我查询索引信息时却没有该索引,在sqlplus中用
select * from user_indexes where table_name='FX0.CELL_A'
查询,显示'未选定行‘。大家帮帮忙!
索引sqloracle
解决方案 »
- 如何使用存储过程更新前一周库存量?
- 请大家帮忙看看这样的sql有没有办法写出来,谢谢!
- oracle 无故多了几个表,且有些type 无法删除 ,注:不久前电脑停电一次,会不会有什么关系
- 关于CLOB字段插入丢失数据的问题
- PL/SQL 登陆oracle的问题,急,盼高手解决
- oracle要钱吗
- 一条复杂sql不知道怎么写,好像不能实现,高手看看,在线等待
- 在C/S 或者MIDAS中,如何实现并发和锁定
- 请问各位dx:提示“maximum of 20 enabled roles exceeded“,该如何解决?谢谢。(无内容)
- 出现如下问题紧紧是因为回滚段空间不够么?
- 如何将Oracle中多表连接的查询结果导入到sqlserver2005 中?
- oracle文档html版
是啊,没找到索引,所以没数据。
但关键是我建了索引啊
呵呵,我好弱啊,确实是这样,不要加用户名。
顺便问一下,这个用户名什么时候要加,什么时候不要加?
我在查表时,都是在表名前加了用户名的,而上面查索引却又不要加
SQL> create table zhangqi (id number, name varchar2(20));
Table created
SQL> create index idx_zhangqi_id_pk on zhangqi(id);
Index created
SQL> select * from user_indexes where table_name = 'ZHANGQI';这时会查询到结果,截图没传上来,你再建下索引,保证索引创建成功。
你查索引的table_name明显要的是表名,你加个用户名肯定不对
在问个问题,我在分区表CELL上建了本地分区索引,如下
-- Create/Recreate indexes
create index FX0.LOC_TIME on FX0.CELL (TIME)
local;可是,我用
select index_name,table_name,partitioning_type,locality,alignment from user_part_indexes where table_name='CELL'(这句sql正确吗)
还是没有查到该索引。。
在问个问题,我在分区表CELL上建了本地分区索引,如下
-- Create/Recreate indexes
create index FX0.LOC_TIME on FX0.CELL (TIME)
local;可是,我用
select index_name,table_name,partitioning_type,locality,alignment from user_part_indexes where table_name='CELL'(这句sql正确吗)
还是没有查到该索引。。
CREATE INDEX dbobjs_idx ON dbobjs (created) LOCAL
(PARTITION dbobjs_06 TABLESPACE users,
PARTITION dbobjs_07 TABLESPACE users
);你建到哪个分区了呀,另外可以用all_part_indexes来查是不是你用户不对