13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

352 OR_PARTITION= Data Set Option 4 Chapter 11OR_PARTITION= Data Set OptionAllows reading, updating, and deleting from a particular partition in a partitioned table, alsoinserting and bulk loading into a particular partition in a partitioned table.Default value: noneValid in: DATA and PROC steps (when accessing DBMS data using <strong>SAS</strong>/<strong>ACCESS</strong>software)DBMS support: OracleSyntaxOR_PARTITION=name of a partition in a partitioned Oracle tableSyntax Descriptionname of a partition in a partitioned Oracle tableThe name of the partition must be valid or an error occurs.DetailsUse this option in cases where you are working with only one particular partition at atime in a partitioned table. Specifying this option boosts per<strong>for</strong>mance because you arelimiting your access to only one partition of a table instead of the entire table.This option is appropriate when reading, updating, and deleting from a partitionedtable, also when inserting into a partitioned table or bulk loading to a table. You canuse it to boost per<strong>for</strong>mance.ExampleThis example shows one way you can use this option.libname x oracle user=scott pw=tiger path=oraclev9;proc delete data=x.orparttest; run;data x.ORparttest ( dbtype=(NUM=’int’)DBCREATE_TABLE_OPTS=’partition by range (NUM)(partition p1 values less than (11),partition p2 values less than (21),partition p3 values less than (31),partition p4 values less than (41),partition p5 values less than (51),partition p6 values less than (61),partition p7 values less than (71),partition p8 values less than (81))’ );do i=1 to 80;NUM=i;output;end;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!