将分区表EXCHAGNE到一张普通表的SQL

[复制链接]
查看11 | 回复9 | 2007-9-26 18:42:10 | 显示全部楼层 |阅读模式
SQL> alter table test_1 exchange with table test partition p_01_2007 ;
alter table test_1 exchange with table test partition p_01_2007
ORA-14155: 缺失 PARTITION 或 SUBPARTITION 关键字
SQL>
请问语法是什么样的?
帮助里好像没有 。
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
http://download.oracle.com/docs/ ... titi.htm#sthref2768
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
还是没有查到语法。
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
顶一下
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
alter table test_1 exchange partition ... with table ....;
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
我说是将分区表的某一个分区 exchange 到一个表里面 .
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
不就是那么写吗
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
test为分区表
test_1为普通表白
SQL> alter table test_1 exchange partition p_01_2006 with table test;
alter table test_1 exchange partition p_01_2006 with table test

*
ERROR at line 1:
ORA-14501: object is not partitioned

SQL>
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层

alter table test exchange partition p_01_2006 with table test_1;
回复

使用道具 举报

千问 | 2007-9-26 18:42:10 | 显示全部楼层
呵呵
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行