如何查看表上有哪些表分区 如何查看表上有哪些表分区? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select subobject_name from user_objects where object_name = 'XXXX' and object_type = 'TABLE PARTITION'; SELECT * FROM user_tab_partitionsWHERE table_name=; select * from user_part_tables;select * from user_tab_partitions;select * from user_tab_subpartitions;select * from user_part_indexes;select * from user_ind_partitions;select * from user_ind_subpartitions;select table_name, partitioning_type type, p.subpartitioning_type, p.partition_count from user_part_tables p;select index_name, partitioning_type type, p.subpartitioning_type, p.partition_count from user_part_indexes p;select tp.table_name, tp.high_value, tp.subpartition_count, tp.tablespace_name from user_tab_partitions tp; select ts.partition_name, ts.subpartition_name, ts.tablespace_name from user_tab_subpartitions ts; select tp.index_name, tp.high_value, tp.tablespace_name from user_ind_partitions tp; 两位的方法我都试过来,出不来啊,我用的ORACLE9I 什么提示信息?你有写全WHERE table_name='大写的你的表名'吗? select * from user_tab_partitions where table_name = 's_send_sms_integrate_history';查询结果把我的列名都显示出来了 SELECT table_name,partition_name FROM user_tab_partitionsWHERE table_name='大写表名'; OK,谢谢suiziguo,我一直认为ORACLE是不区分大小写的,能解释下这里为什么要区分大小写吗? ''里是具体数据。ORACLE的关键字是不区分大小写的。select sysdate from dual与SELECT SYSDATE FROM DUAL完全等同。但是具体数据是区分大小写的,ORACLE的内部数据字典数据,就是为了避免不必要的麻烦,对象名全部为大写。除非你使用了双引号,ORACLE会存小写,但是你会发现,这样做后患无穷!!! 个人拙见....我可不认同,你的完全等同的说法...当你向ORACLE 提交一个SQL语句,ORACLE会首先在共享内存中查找是否有相同的语句。这里需要注明的是,ORACLE对两者采取的是一种严格匹配,要达成共享,SQL语句必须完全相同(包括空格,换行等) 怎么在已有数据的表中添加id字段并且自增,在线等 建表无权 PL/SQL的几个问题 面试(悲剧了) 高手留步,oracle中case语句可以用哪些语句来替换?加分阿! Data guard下的RAC交叉存档有疑问 初到贵地散分100,请教基本菜鸟入门的问题!! to_date問題 谁能帮我,我不胜感激,在存储过程中使用游标..我不太懂...在线等待.... 通过occi接口执行存储过程,对于存储过程执行中获取的某些结果。如何通过occi接口取出 帮忙看一个产生统计报表的算法 头疼的科目余额计算
from user_objects
where object_name = 'XXXX'
and object_type = 'TABLE PARTITION';
WHERE table_name=;
select * from user_part_tables;
select * from user_tab_partitions;
select * from user_tab_subpartitions;select * from user_part_indexes;
select * from user_ind_partitions;
select * from user_ind_subpartitions;
select table_name,
partitioning_type type,
p.subpartitioning_type,
p.partition_count
from user_part_tables p;
select index_name,
partitioning_type type,
p.subpartitioning_type,
p.partition_count
from user_part_indexes p;
select tp.table_name, tp.high_value, tp.subpartition_count, tp.tablespace_name
from user_tab_partitions tp;
select ts.partition_name, ts.subpartition_name, ts.tablespace_name
from user_tab_subpartitions ts;
select tp.index_name, tp.high_value, tp.tablespace_name
from user_ind_partitions tp;
查询结果把我的列名都显示出来了
WHERE table_name='大写表名';
ORACLE的关键字是不区分大小写的。select sysdate from dual
与
SELECT SYSDATE FROM DUAL完全等同。
但是具体数据是区分大小写的,ORACLE的内部数据字典数据,就是为了避免不必要的麻烦,对象名全部为大写。除非你使用了双引号,ORACLE会存小写,但是你会发现,这样做后患无穷!!!
我可不认同,你的完全等同的说法...
当你向ORACLE 提交一个SQL语句,ORACLE会首先在共享内存中查找是否有相同的语句。这里需要注明的是,ORACLE对两者采取的是一种严格匹配,要达成共享,SQL语句必须完全相同(包括空格,换行等)