Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Range-Range Partition: Add/Delete manipulation

$
0
0

Dear all,

 

From SPS12, range-range composite partition is available.

For testing, following partition table is defined.

 

/* Composite Partition definition*/

create column table test_part

(

  cont_no varchar(12),

  cont_splitkey varchar(3),

  seibetu varchar(1),

  seibetu_end varchar(1),

  seinen varchar(12),

  nendai varchar(1),

  yuubin varchar(7),

  aria varchar(1)

)

partition by range (cont_splitkey)

(

  partition '000' <= values < '050',

  partition '050' <= values < '060',

  partition '060' <= values < '070',

  partition '070' <= values < '080'

),range (seinen)

(

  partition '000000000000' <= values < '500000000000',

  partition '500000000000' <= values < '600000000000',

  partition others

);

 

After creation, I tried  SQL  under composite condition.

Under composite condition, following syntax error occurs.

Does anyone know how to fix this problem ??

 

(Error)

alter table test_part drop partition (cont_splitkey) '070' <= values < '080', partition (seinen) '500000000000' <= values < '600000000000';

 

-> Could not execute 'alter table test_part drop partition (cont_splitkey) '070' <= values < '080', partition (seinen) ...'

SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near ",": line 1 col 77 (at pos 77)

 

 

Following statements work correctly.

 

OK:

alter table test_part drop partition (cont_splitkey) ‘070’ <= values < ‘080’

OK:

alter table test_part add partition (cont_splitkey) ‘070’ <= values < ‘080’

OK:

alter table test_part drop partition(seinen) '500000000000' <= values < '600000000000';

OK:

alter table test_part add partition(seinen) '500000000000' <= values < '600000000000';

 

 

Best Regards,

Kinichi Machii


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>