MySQL Forums
Forum List  »  PostgreSQL

Re: Change from Postgre to MySQL query error
Posted by: Devart Team
Date: August 31, 2010 02:19AM

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/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Change from Postgre to MySQL query error
3114
August 31, 2010 02:19AM


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.