sql-porting-problem oracle to postgresql with UPDATE/IS NOT NULL - Mailing list pgsql-sql

From Gau, Hans-Jürgen
Subject sql-porting-problem oracle to postgresql with UPDATE/IS NOT NULL
Date
Msg-id 670F563845D6B34189933C9C7322B4872C0568@LV-MX-00002-V02.LV.ads.niedersachsen.de
Whole thread Raw
Responses Re: sql-porting-problem oracle to postgresql with UPDATE/IS NOT NULL
List pgsql-sql
<p><font face="Arial" size="2">hello list, </font><br /><font face="Arial" size="2">i have some problems with an
sql-statementwhich runs on oracle but not on postgresql (i want update only if result of SELECT is not empty, the
SELECT-queriesare identical):</font><p><font face="Arial" size="2">UPDATE table1 t1<br />         SET (t1.id) =<br />
               (SELECT h.id FROM table2 t2,table3 t3, table1 t1<br />                 WHERE t3.field = t2.field<br />
                       AND t2.id = t1.id<br />                         AND t1.id <> t3.id)<br />         WHERE<br
/>                (SELECT h.id FROM table2 t2,table3 t3, table1 t1<br />                         WHERE t3.field =
t2.field<br/>                                 AND t2.id = t1.id<br />                                 AND t1.id
<>t3.id) IS NOT NULL; </font><br /><br /><p><font face="Arial" size="2">thanks, hans </font><br /><br /> 

pgsql-sql by date:

Previous
From: Science
Date:
Subject: Re: Bit by "commands ignored until end of transaction block" again
Next
From: Daryl Richter
Date:
Subject: Re: sql-porting-problem oracle to postgresql with UPDATE/IS NOT NULL