Revisions
-
geoffb revised this gist
Apr 7, 2010 . 1 changed file with 16 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,3 +26,19 @@ WHERE hurr AND (foo = 'bar') AND (bar = 'baz') LIMIT 1 SELECT a.foo, a.bar, a.baz, b.foo, b.bar FROM table_a as a INNER JOIN table_b as b ON a.foo = b.foo WHERE a.bar = 1 AND b.bar = 2 LIMIT 1 -
isaacs revised this gist
Apr 6, 2010 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,4 +16,13 @@ WHERE AND (foo = 'bar') LIMIT 1 SELECT * FROM table WHERE hurr AND (foo = 'bar') AND (bar = 'baz') LIMIT 1 -
richtaur created this gist
Apr 6, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ -- I used to do it like this: SELECT * FROM table WHERE hurr AND (foo = 'bar') AND (bar = 'foo') -- Then later I spaced it out even more: SELECT * FROM table WHERE hurr AND (foo = 'bar') LIMIT 1