A thief
-
Actually, I've gotten into the habit of adding a
where 1=1
clause to all my queries. It makes it really easy to comment out different clauses for testing, because every line starts withand
.select * from tablename where 1=1 and condition1 and condition2 and condition3
In the above example, you can simply comment out (using--
) any of thewhere
clauses without worrying about trailing any leading or trailingand
.The StartPage Randomizer - The Windows Cheerleader - Twitter
Neat! I ought to remember this!
-
Speaking of hijacking threads; as I recall, a few months ago, there was a minor competition to see who could do it best.
-
Speaking of hijacking threads; as I recall, a few months ago, there was a minor competition to see who could do it best.