in reply to Odd and even table rows

I tend to think that this is a presentation issue, and so should be handled by your front-end code, such as your templating engine. Don't put it in your database access code.