|
1. ´ë¿ë·®ÀÇ Å×À̺íÀ» »ç¿ëÇÒ¶§..
CREATE TABLE AAA(
ID CHAR(4),
NAME VARCHAR2(20)
)
PARTITION BY RANGE(ID)(
PARTITION ID1 VALUES LESS THAN ('1000') TABLESPACE data1
PARTITION ID2 VALUES LESS THAN ('2000') TABLESPACE data2
PARTITION ID3 VALUES LESS THAN ('3000') TABLESPACE data3
)
ÀÌ·¸°Ô ÇØÁÖ¸é ID°¡ '1000'º¸´Ù ÀÛÀ¸¸é Å×ÀÌºí½ºÆäÀ̽º DATA1¿¡
'2000'º¸´Ù ÀÛÀ¸¸é Å×ÀÌºí½ºÆäÀ̽º DATA2¿¡
'3000'º¸´Ù ÀÛÀ¸¸é Å×ÀÌºí½ºÆäÀ̽º DATA3¿¡
µé¾î°£´Ù.
±×¸®°í °ªÀÌ Á¶°Ç °ªÀÌ ¸î°³·Î Á¤ÇØÀú ÀÖ´Ù¸é RANGE ´ë½Å LIST¸¦ »ç¿ëÇÏ¸é µÇ´Âµ¥
PARTITION BY LIST(ID)(
PARTITION ID1 VALUES ('1000','1001') TABLESPACE data1
PARTITION ID2 VALUES ('2000','2002') TABLESPACE data2
PARTITION ID3 VALUES ('3000','3003') TABLESPACE data3
)
ÀÌ·¸°Ô »ç¿ëÇÑ´Ù.
½ÇÁ¦·Î ÀÌ°ÍÀ» »ç¿ëÇÏ·Á¸é
AAA Å×ÀÌºí ¸í ¹Ù·Î µÚ¿¡
SELECT * FROM AAA PARTITIOIN(ID1)
ÀÏÄÉ ÇØÁÖ¸é µÇÁö·Õ~~
¿¹Àü¿¡ ·¹ÄÚµå °¹¼ö°¡ õ¸¸°³¸¦ ³Ñ´Â Å×À̺íÀ» ´Ù·éÀûÀÌ ÀÖ¾î¼..
PARTITION À» ¾Ë¾Ò´õ¶ó¸é.. ±×¸¸Å ½Ã°£ÀÌ °É¸®Áö ¾Ê¾ÒÀ»°Å¶õ »ý°¢ÀÌ µç´Ù..
|