我可以安全地从模式 1 中删除我的 table 吗?
Can I safely drop my table from schema 1?
甲骨文
在模式 A 中,我用数据创建了一个名为 "apples" 的 table。
在模式 B 中,我使用
从模式 1 创建了 table "apples" 的副本
create table apples as select * from schemaA.apples
我的问题是,现在我已经启动了模式 B 并且 运行。我可以 drop/delete 我的 schemaA.apples 吗? table之间没有直接的link对吗?
或者如果我掉落 schemaA.apples 会 schemaB.apples 被烧毁吗?
There is no direct link between the tables correct?
正确。您有两个不同的 table,它们不相关。您刚刚在给定的时间点将数据从一个 table 复制到另一个。
Or if I drop schemaA.apples will schemaB.apples get runied?
不,不存在影响其他人的风险table。同样,数据被复制,并且 table 是独立的。
旁注:create table ... as select ...
语法(又名 CTAS)仅复制数据和结构,但不复制主键、约束、索引等相关对象,序列。您可能想要检查这些对象,并将它们也重新创建到新架构。
甲骨文
在模式 A 中,我用数据创建了一个名为 "apples" 的 table。
在模式 B 中,我使用
从模式 1 创建了 table "apples" 的副本create table apples as select * from schemaA.apples
我的问题是,现在我已经启动了模式 B 并且 运行。我可以 drop/delete 我的 schemaA.apples 吗? table之间没有直接的link对吗?
或者如果我掉落 schemaA.apples 会 schemaB.apples 被烧毁吗?
There is no direct link between the tables correct?
正确。您有两个不同的 table,它们不相关。您刚刚在给定的时间点将数据从一个 table 复制到另一个。
Or if I drop schemaA.apples will schemaB.apples get runied?
不,不存在影响其他人的风险table。同样,数据被复制,并且 table 是独立的。
旁注:create table ... as select ...
语法(又名 CTAS)仅复制数据和结构,但不复制主键、约束、索引等相关对象,序列。您可能想要检查这些对象,并将它们也重新创建到新架构。