Skip to content

Instantly share code, notes, and snippets.

@subbu
Created March 29, 2011 17:06
Show Gist options
  • Save subbu/892767 to your computer and use it in GitHub Desktop.
Save subbu/892767 to your computer and use it in GitHub Desktop.
SELECT p.id, name, LENGTH(body) AS len
FROM (
SELECT id
FROM projects
ORDER BY id
LIMIT 150000, 10
) o
JOIN projects p
ON p.id = o.id
ORDER BY p.id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment