Created
February 3, 2012 18:33
-
-
Save terrancesnyder/1731629 to your computer and use it in GitHub Desktop.
Oracle Hash Partitioning
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
select | |
MYID | |
, ora_hash(MYID, 100) | |
from mytable | |
where | |
ora_hash(MYID, 100) = 90; -- find everything that goes into bucket 90... | |
-- ora_hash(MYID, 100) => [BUCKET TO ASSIGNED] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment