Skip to content

Commit dc9ba2b

Browse files
authored
Create 4-add-external-partition-data.sql
1 parent d7657fd commit dc9ba2b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
REM Script: 4-add-external-partition-data.sql
2+
REM Use EXCHANGE PARTITION
3+
4+
-- swap data segments to get external data partition
5+
6+
ALTER TABLE hr.employees_hybrid
7+
EXCHANGE PARTITION(salary_4000) WITH TABLE ext_help;
8+
9+
-- you can drop the external helper table EXT_HELP now

0 commit comments

Comments
 (0)