MySQL Forums
Forum List  »  General

Mysql compatibility problem
Posted by: Gugulethu Ntombela
Date: April 06, 2006 02:54AM

I'm trying to execute this query with an older version of mysql:

update threads t set t.threadStatusID = 23
where t.threadStatusID = 5 AND t.threadID IN( SELECT i.threadID
FROM items i
group by i.threadID
having max(i.dateCreated) < CURDATE() - INTERVAL 14 DAY );

The query does work properly with mysql 5. How can I change it so that it runs in older versions?

Options: ReplyQuote


Subject
Written By
Posted
Mysql compatibility problem
April 06, 2006 02:54AM


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.