Friday, December 08, 2006

Stuck in the middle of MySQL hell

I hate BETWEEN.

How fucking stupid is it that:
SELECT * FROM table WHERE id BETWEEN 1 AND 1000 is not the same as SELECT * FROM table WHERE id BETWEEN 1000 AND 1.

Where's the principle of least fucking surprise.

No comments: