Re: Change from Postgre to MySQL query error
Try this one -
UPDATE datavalue as d1, datavalue AS d2
SET
d1.value=d2.value,
d1.storedby=d2.storedby,
d1.lastupdated=d2.lastupdated,
d1.comment=d2.comment,
d1.followup=d2.followup
WHERE
d1.periodid=d2.periodid
AND d1.sourceid=d2.sourceid
AND d1.lastupdated<d2.lastupdated
AND d1.dataelementid=1
AND d1.categoryoptioncomboid=2
AND d2.dataelementid=3
AND d2.categoryoptioncomboid=4;
Devart Company,
MySQL management tools
http://www.devart.com/dbforge/mysql/
Subject
Views
Written By
Posted
7333
August 30, 2010 10:45AM
Re: Change from Postgre to MySQL query error
3232
August 31, 2010 02:19AM
3488
September 04, 2010 10:06AM
3585
September 06, 2010 01:18AM
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.