Skip to content

Instantly share code, notes, and snippets.

@terrancesnyder
Created June 24, 2011 13:23
Show Gist options
  • Save terrancesnyder/1044750 to your computer and use it in GitHub Desktop.
Save terrancesnyder/1044750 to your computer and use it in GitHub Desktop.
oracle force index scan
SELECT /*+ INDEX(patients sex_index) use sex_index because there are few male patients */ name, height, weight
FROM patients
WHERE sex = 'm';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment