Re: Query driving me mad
Posted by:
Jay Pipes
Date: July 21, 2005 07:24AM
You're using a MySQL version prior to 4.1, which is the first to support subqueries. Just change to use a join (which will be more efficient most times anyway):
SELECT e.*
FROM bl_ecomms_email e
INNER JOIN bl_ecomms_list_members m
ON e.email_id = m.email_id
WHERE e.email_dateOptOut = '0000-00-00 00:00:00'
AND m.list_id=2;
Jay Pipes
Community Relations Manager, North America, MySQL Inc.
Got Cluster?
http://www.mysql.com/cluster
Personal:
http://jpipes.com
Subject
Written By
Posted
Re: Query driving me mad
July 21, 2005 07:24AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.