i Know Kung Foo Consulting

Please stop using SELECT MAX(id)

I know there are a lot of tutorials that use this technique. I also know there's a lot of inherited code (in any language) that contains this SQL. I also also know that - years ago - I too was a slave to SELECT MAX(id). But this is the 21st century and you need to stop using it.

[More]

Thou shalt not query thy database using SELECT *

Usually I just bookmark blog posts via Del.icio.us, but I really wanted to point out one of Ben Nadel's posts Easy Tips For Writing Better, More Optimized SQL. Hopefully he'll supply some examples in future posts, but the concepts he covers are a must for anyone writing SQL with or without ColdFusion.

Copyright © 2001 - 2008 Adrian J. Moreno and i Know Kung Foo Consulting
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001.