Created
August 24, 2015 14:53
-
-
Save shivallan/c173a58ba533e1fbc8ba to your computer and use it in GitHub Desktop.
Создание таблицы через select + партиции по дате
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create table TEST_PARTITION | |
| partition by range (CREATE_DTTM) ( | |
| partition part_Aug2015 values less than (to_date('01-SEP-2015', 'DD-MON-YYYY')), | |
| partition part_Sep2015 values less than (to_date('01-OCT-2015', 'DD-MON-YYYY')), | |
| partition part_Oct2015 values less than (to_date('01-NOV-2015', 'DD-MON-YYYY')), | |
| partition part_Nov2015 values less than (to_date('01-DEC-2015', 'DD-MON-YYYY')) | |
| ) as | |
| ( | |
| select * | |
| from INT_OFFER.INT_CMFRONT_CHANNEL_PARAMS@OFFERDB_LINK_WRITER where 1=0 | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment