SQL> create table IOT_MAPPING_TEST (name varchar2(32), 2 no number, 3 constraint PK_IOT_MAPPING_TEST primary key(no) 4 ) 5 organization index 6 mapping table; Table created SQL> SQL> select table_name,iot_name,iot_type from user_tables where table_name='IOT_MAPPING_TEST'; TABLE_NAME IOT_NAME IOT_TYPE ------------------------------ ------------------------------ ------------ IOT_MAPPING_TEST IOT SQL> select table_name,iot_name,iot_type from user_tables where iot_type='IOT_MAPPING'; TABLE_NAME IOT_NAME IOT_TYPE ------------------------------ ------------------------------ ------------ SYS_IOT_MAP_56839 IOT_MAPPING_TEST IOT_MAPPING SQL> SQL> alter table iot_mapping_test shrink space; Table altered SQL> alter table SYS_IOT_MAP_56839 shrink space; alter table SYS_IOT_MAP_56839 shrink space ORA-28668: cannot reference mapping table of an index-organized table
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24104518/viewspace-712581/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24104518/viewspace-712581/
本文介绍了如何使用SQL语句创建IOT类型的表IOT_MAPPING_TEST,并对其进行了主键约束设置。此外,还展示了如何查询该表的详细信息,并尝试了对该表及其映射表进行空间收缩操作。

被折叠的 条评论
为什么被折叠?



