请教怎样交换分区,即怎样使用exchange命令?

kentenjoy kentenjoy 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
有两个表
create table sales(
invoice_no number,
sale_year int not null,
sale_month int not null,
sale_day int not null)
partition by range(sale_year)
(partition sales_q1 values less than(2002)
tablespace taba );

create table sales(
invoice_no number,
sale_year int not null,
sale_month int not null,
sale_day int not null) tablespace tabb;

alter table sales exchange partition sales_q1 with table sales1;
报错为
ERROR at line 1:
ORA-14097: column type or size mismatch in ALTER TABLE EXCHANGE PARTITION
请高手指教,谢谢
...全文
评论 3
收藏 已收藏
分享
返回顶部
kentenjoy
基础和管理 17,380 成员 95,111 内容