just suppress the error with @.

Edward Dudlik
Becoming Digital
www.becomingdigital.com


----- Original Message ----- 
From: "Mark Rages" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, 06 June, 2003 17:15
Subject: SQL no-op?


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
[EMAIL PROTECTED]

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]





-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to