List:General Discussion« Previous MessageNext Message »
From:Mark Rages Date:June 6 2003 9:15pm
Subject:SQL no-op?
View as plain text  
I need a placeholder statement that does nothing.

Is there something more elegant than
SELECT FROM ... WHERE 0=1; ?

I need this because PHP throws an error when an empty statement 
(or just a ';') is passed to MySQL.

Regards,
Mark
markrages@stripped
Thread
SQL no-op?Mark Rages6 Jun
  • Re: SQL no-op?Jeremy Zawodny7 Jun
    • Re: SQL no-op?Paul DuBois7 Jun
      • Re: SQL no-op?Jeremy Zawodny7 Jun
      • Re: SQL no-op?(Pete Harlan)7 Jun
        • Re: SQL no-op?Paul DuBois7 Jun
  • Re: SQL no-op?Becoming Digital7 Jun
    • Re: SQL no-op?Mark Rages7 Jun